com.dtolabs.rundeck.core.cli.project
Class CreateAction

java.lang.Object
  extended by com.dtolabs.rundeck.core.cli.project.BaseAction
      extended by com.dtolabs.rundeck.core.cli.project.CreateAction
All Implemented Interfaces:
Action

public class CreateAction
extends BaseAction

Creates and initializes the project structure. This involves creating the project repository and running an Ant build script to populate/initialize the project. The build file is run via AntProject so can include access to tasks and properties provided by it.


Nested Class Summary
static interface CreateAction.CreateActionArgs
          Arguments for the CreateAction
 
Nested classes/interfaces inherited from class com.dtolabs.rundeck.core.cli.project.BaseAction
BaseAction.BaseActionArgs
 
Field Summary
 
Fields inherited from class com.dtolabs.rundeck.core.cli.project.BaseAction
framework, main, project
 
Constructor Summary
CreateAction(CLIToolLogger main, Framework framework, BaseAction.BaseActionArgs baseArgs, CreateAction.CreateActionArgs createArgs)
          Create a new CreateAction
CreateAction(CLIToolLogger main, Framework framework, BaseAction.BaseActionArgs baseArgs, CreateAction.CreateActionArgs createArgs, java.util.Properties projectProperties)
          Create a new CreateAction
CreateAction(CLIToolLogger main, Framework framework, org.apache.commons.cli.CommandLine cli)
          Create a new CreateAction, and parse the args from the CommandLine, using BaseAction.parseBaseActionArgs(org.apache.commons.cli.CommandLine) and parseCreateActionArgs(org.apache.commons.cli.CommandLine) to create the argument specifiers.
CreateAction(CLIToolLogger main, Framework framework, org.apache.commons.cli.CommandLine cli, java.util.Properties properties)
          Create a new CreateAction, and parse the args from the CommandLine, using BaseAction.parseBaseActionArgs(org.apache.commons.cli.CommandLine) and parseCreateActionArgs(org.apache.commons.cli.CommandLine) to create the argument specifiers.
 
Method Summary
static CreateAction.CreateActionArgs createArgs(boolean cygwin)
          Create args instance
 void exec()
          Execute the action.
 java.util.Properties getProperties()
           
 boolean isCygwin()
           
static CreateAction.CreateActionArgs parseCreateActionArgs(org.apache.commons.cli.CommandLine cli)
           
 void setCygwin(boolean cygwin)
           
 void setProperties(java.util.Properties properties)
           
 
Methods inherited from class com.dtolabs.rundeck.core.cli.project.BaseAction
createArgs, isVerbose, parseBaseActionArgs, setVerbose, validateInstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateAction

public CreateAction(CLIToolLogger main,
                    Framework framework,
                    org.apache.commons.cli.CommandLine cli)
Create a new CreateAction, and parse the args from the CommandLine, using BaseAction.parseBaseActionArgs(org.apache.commons.cli.CommandLine) and parseCreateActionArgs(org.apache.commons.cli.CommandLine) to create the argument specifiers.

Parameters:
main -
framework -
cli -

CreateAction

public CreateAction(CLIToolLogger main,
                    Framework framework,
                    org.apache.commons.cli.CommandLine cli,
                    java.util.Properties properties)
Create a new CreateAction, and parse the args from the CommandLine, using BaseAction.parseBaseActionArgs(org.apache.commons.cli.CommandLine) and parseCreateActionArgs(org.apache.commons.cli.CommandLine) to create the argument specifiers.

Parameters:
main -
framework -
cli -
properties -

CreateAction

public CreateAction(CLIToolLogger main,
                    Framework framework,
                    BaseAction.BaseActionArgs baseArgs,
                    CreateAction.CreateActionArgs createArgs,
                    java.util.Properties projectProperties)
Create a new CreateAction

Parameters:
main -
framework - framework object
baseArgs - base args
createArgs -

CreateAction

public CreateAction(CLIToolLogger main,
                    Framework framework,
                    BaseAction.BaseActionArgs baseArgs,
                    CreateAction.CreateActionArgs createArgs)
Create a new CreateAction

Parameters:
main -
framework - framework object
baseArgs - base args
createArgs -
Method Detail

isCygwin

public boolean isCygwin()

setCygwin

public void setCygwin(boolean cygwin)

getProperties

public java.util.Properties getProperties()

setProperties

public void setProperties(java.util.Properties properties)

parseCreateActionArgs

public static CreateAction.CreateActionArgs parseCreateActionArgs(org.apache.commons.cli.CommandLine cli)

createArgs

public static CreateAction.CreateActionArgs createArgs(boolean cygwin)
Create args instance

Parameters:
cygwin - cygwin
Returns:

exec

public void exec()
          throws java.lang.Throwable
Execute the action.

Specified by:
exec in interface Action
Overrides:
exec in class BaseAction
Throws:
java.lang.Throwable