Package bear.plugins.sh

Examples of bear.plugins.sh.WriteStringResult.ok()


    public TaskResult<?> runScript(SessionContext $, String script) {
        final String tempPath = $.var($.bear.randomFilePath).getTempPath("mongo_", ".js");

        WriteStringResult result = $.sys.writeString(script).toPath(tempPath).run();

        if(!result.ok()){
            return TaskResult.value(result);
        }

        CommandLineResult<?> lineResult = $.sys.captureBuilder("mongo " + $.var(connectionString) + " " + tempPath).run();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.