|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.cli.project.ProjectTool
public class ProjectTool
Main class for creating new projects. This is called via rd-project shell command.
Field Summary | |
---|---|
static java.lang.String |
ACTION_CREATE
|
static java.lang.String |
ACTION_REMOVE
|
protected org.apache.commons.cli.CommandLine |
cli
Reference to command line params |
protected static org.apache.commons.cli.Options |
options
reference to the command line Options instance. |
Constructor Summary | |
---|---|
ProjectTool()
|
|
ProjectTool(java.io.File baseDir)
|
Method Summary | |
---|---|
Action |
createAction(java.lang.String actionName)
|
void |
debug(java.lang.String message)
Logs debug message via implementation specific log facility |
void |
error(java.lang.String output)
Interfaces for the CLIToolLogger |
void |
executeAction()
Executes the setup helper actions |
void |
exit(int code)
Calls the exit method |
void |
help()
prints usage info |
void |
initArgs()
ActionMaker interface implementations |
boolean |
isOverwrite()
|
void |
log(java.lang.String message)
Logs message via implementation specific log facility |
static void |
main(java.lang.String[] args)
Creates an instance and executes run(String[]) . |
org.apache.commons.cli.CommandLine |
parseArgs(java.lang.String[] args)
processes the command line input |
void |
run(java.lang.String[] args)
Runs the initArgs and go methods. |
void |
verbose(java.lang.String message)
Logs verbose message via implementation specific log facility |
void |
warn(java.lang.String output)
Logs warning message via implementation specific log facility |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ACTION_CREATE
public static final java.lang.String ACTION_REMOVE
protected org.apache.commons.cli.CommandLine cli
protected static final org.apache.commons.cli.Options options
Options
instance.
Constructor Detail |
---|
public ProjectTool()
public ProjectTool(java.io.File baseDir)
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
run(String[])
.
args
-
java.lang.Exception
public final void run(java.lang.String[] args)
run
in interface CLITool
args
- Command line arg vectorpublic void exit(int code)
exit
in interface CLITool
code
- return code to exit withpublic void help()
help
in interface CLITool
public void executeAction() throws ProjectToolException
ProjectToolException
- thrown if action failedpublic org.apache.commons.cli.CommandLine parseArgs(java.lang.String[] args) throws ProjectToolException
parseArgs
in interface CLITool
args
- command line arg vector
ProjectToolException
public void initArgs()
initArgs
in interface ActionMaker
public boolean isOverwrite()
isOverwrite
in interface ActionMaker
public Action createAction(java.lang.String actionName)
createAction
in interface ActionMaker
public void error(java.lang.String output)
error
in interface BaseLogger
output
- message to logpublic void warn(java.lang.String output)
BaseLogger
warn
in interface BaseLogger
output
- message to logpublic void log(java.lang.String message)
BaseLogger
log
in interface BaseLogger
message
- message to logpublic void verbose(java.lang.String message)
BaseLogger
verbose
in interface BaseLogger
message
- message to logpublic void debug(java.lang.String message)
BaseLogger
debug
in interface BaseLogger
message
- message to log
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |