Package com.dtolabs.rundeck.core.plugins

Examples of com.dtolabs.rundeck.core.plugins.ScriptPluginProvider


    @Override
    public GeneratedScript generateScript(final PluginStepContext context,
                                          final Map<String, Object> configuration,
                                          final INodeEntry entry)  {
        final ScriptPluginProvider provider = getProvider();
        final String args = provider.getScriptArgs();
        final String[] argsarr;
        if (null != args) {
            argsarr = args.split(" ");
        } else {
            argsarr = null;
        }

        return createFileGeneratedScript(
            provider.getScriptFile(),
            argsarr,
            provider.getScriptInterpreter(),
            provider.getInterpreterArgsQuoted()
        );
    }
View Full Code Here


    }

    public NodeExecutorResult executeCommand(final ExecutionContext executionContext, final String[] command,
                                             final INodeEntry node)  {
        Description pluginDesc = getDescription();
        final ScriptPluginProvider plugin = getProvider();
        final String pluginname = plugin.getName();
        executionContext.getExecutionListener().log(3,
                                                    "[" + pluginname + "] execCommand started, command: "
                                                    + StringArrayUtil.asString(command, " "));

        final Map<String, Map<String, String>> localDataContext = createScriptDataContext(
View Full Code Here

    }

    @Override
    public void executeStep(final PluginStepContext executionContext, final Map<String, Object> config)
        throws StepException {
        final ScriptPluginProvider plugin = getProvider();
        final String pluginname = plugin.getName();
        executionContext.getLogger()
            .log(3, "[" + pluginname + "] step started, config: " + config);

        //create a new step item containing the resolved properties, which will be used in the script
        // execution context
View Full Code Here

    @Override
    public void executeNodeStep(final PluginStepContext executionContext,
                                   final Map<String, Object> configuration,
                                   final INodeEntry node)
        throws NodeStepException {
        final ScriptPluginProvider plugin = getProvider();
        final String pluginname = plugin.getName();
        executionContext.getLogger().log(3,
                                         "[" + pluginname + "] step started, config: "
                                         + configuration);

View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.plugins.ScriptPluginProvider

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.