lucee.Component
commandbox.system.util.TaskDSL
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I am a helper object for executing tasks via a DSL. Create me and call my methods to build up an execution, then .run() will execute me. I am a transient and hold state. Do not share me with your friends.
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
exitCode
|
true
|
false
|
|
any
|
flags
|
true
|
false
|
|
any
|
job
|
true
|
false
|
|
any
|
params
|
true
|
false
|
|
any
|
parser
|
true
|
false
|
|
any
|
rawParams
|
true
|
false
|
|
any
|
shell
|
true
|
false
|
|
any
|
target
|
true
|
false
|
|
any
|
taskFile
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
|
any
|
workingDirectory
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init([any taskFile='task'])
Create a new, executable task. |
|
| Method Summary | |
|---|---|
any
|
flags()
Add flags to the command. |
string
|
getCommandString()
Turn this CFC into a string representation. |
string
|
getExitCode()
|
string
|
getFlags()
|
string
|
getJob()
|
string
|
getParams()
|
string
|
getParser()
|
string
|
getRawParams()
|
string
|
getShell()
|
string
|
getTarget()
|
string
|
getTaskFile()
|
array
|
getTokens()
Turn this CFC into an array of command tokens. |
string
|
getWirebox()
|
string
|
getWorkingDirectory()
|
any
|
inWorkingDirectory(any workingDirectory)
Sets the directory to run the task in. |
any
|
params()
Add params to the command. |
private array
|
processParams()
Convert params to named or positional arguments. |
string
|
run([any returnOutput='false'], [boolean echo='false'], [boolean rawParams='false'])
Run this command. |
any
|
setExitCode(any exitCode)
|
any
|
setFlags(any flags)
|
any
|
setJob(any job)
|
any
|
setParams(any params)
|
any
|
setParser(any parser)
|
any
|
setRawParams(any rawParams)
|
any
|
setShell(any shell)
|
any
|
setTarget(any target)
|
any
|
setTaskFile(any taskFile)
|
any
|
setWirebox(any wirebox)
|
any
|
setWorkingDirectory(any workingDirectory)
|
any
|
target([any target])
Add params to the task. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Create a new, executable task
taskFile - I am the task to execute| Property Detail |
|---|
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - interactiveJobserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - parserserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - shellserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - wireboxserializable - trueaccess - publicrequired - falsereturntype - anyserializable - true| Method Detail |
|---|
Add flags to the command
Turn this CFC into a string representation
Turn this CFC into an array of command tokens
Sets the directory to run the task in
workingDirectoryAdd params to the command
Convert params to named or positional arguments
Run this command
returnOutputechorawParamsexitCodeflagsjobparamsparserrawParamsshelltargettaskFilewireboxworkingDirectoryAdd params to the task
target