Package brooklyn.entity.basic.lifecycle

Examples of brooklyn.entity.basic.lifecycle.ScriptHelper


        return getEntity().getConfig(DockerHost.EPEL_RELEASE);
    }

    @Override
    public boolean isRunning() {
        ScriptHelper helper = newScript(CHECK_RUNNING)
                .body.append(alternatives(
                        ifExecutableElse1("boot2docker", sudo("boot2docker status")),
                        ifExecutableElse1("service", sudo("service docker status"))))
                .failOnNonZeroResultCode()
                .gatherOutput();
        helper.execute();
        return helper.getResultStdout().contains("running");
    }
View Full Code Here

TOP

Related Classes of brooklyn.entity.basic.lifecycle.ScriptHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.