Package com.dtolabs.rundeck.core.cli

Examples of com.dtolabs.rundeck.core.cli.Action


        final ProjectTool setup = createProjectTool();
        final String[] args = new String[]{
            "-o", "-p", PROJECT,
        };
        setup.parseArgs(args);
        Action create = setup.createAction(ProjectTool.ACTION_CREATE);
        assertTrue(create instanceof CreateAction);
        create.exec();

    }
View Full Code Here


            "-o", "-p", PROJECT,
            "--test1=value",
            "--project.blah=something"
        };
        setup.parseArgs(args);
        Action create = setup.createAction(ProjectTool.ACTION_CREATE);
        assertTrue(create instanceof CreateAction);
        CreateAction caction = (CreateAction) create;
        assertNotNull(caction.getProperties());
        assertEquals(2, caction.getProperties().size());
        assertTrue(caction.getProperties().containsKey("test1"));
View Full Code Here

            actionName = optAction;            
        } else {
            actionName = ACTION_CREATE; // default action
        }

        final Action action = createAction(actionName);
        try {
            action.exec();
        } catch (Throwable t) {
            throw new ProjectToolException(t);
        }
    }
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.cli.Action

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.