|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.cli.project.BaseAction
com.dtolabs.rundeck.core.cli.project.CreateAction
public class CreateAction
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 |
---|
public CreateAction(CLIToolLogger main, Framework framework, org.apache.commons.cli.CommandLine cli)
BaseAction.parseBaseActionArgs(org.apache.commons.cli.CommandLine)
and
parseCreateActionArgs(org.apache.commons.cli.CommandLine)
to create the argument specifiers.
main
- framework
- cli
- public CreateAction(CLIToolLogger main, Framework framework, org.apache.commons.cli.CommandLine cli, java.util.Properties properties)
BaseAction.parseBaseActionArgs(org.apache.commons.cli.CommandLine)
and
parseCreateActionArgs(org.apache.commons.cli.CommandLine)
to create the argument specifiers.
main
- framework
- cli
- properties
- public CreateAction(CLIToolLogger main, Framework framework, BaseAction.BaseActionArgs baseArgs, CreateAction.CreateActionArgs createArgs, java.util.Properties projectProperties)
main
- framework
- framework objectbaseArgs
- base argscreateArgs
- public CreateAction(CLIToolLogger main, Framework framework, BaseAction.BaseActionArgs baseArgs, CreateAction.CreateActionArgs createArgs)
main
- framework
- framework objectbaseArgs
- base argscreateArgs
- Method Detail |
---|
public boolean isCygwin()
public void setCygwin(boolean cygwin)
public java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
public static CreateAction.CreateActionArgs parseCreateActionArgs(org.apache.commons.cli.CommandLine cli)
public static CreateAction.CreateActionArgs createArgs(boolean cygwin)
cygwin
- cygwin
public void exec() throws java.lang.Throwable
exec
in interface Action
exec
in class BaseAction
java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |