Class: Bake::Blocks::CommandLine
- Inherits:
-
Object
- Object
- Bake::Blocks::CommandLine
- Includes:
- HasExecuteCommand
- Defined in:
- lib/blocks/commandLine.rb
Instance Method Summary collapse
- #clean ⇒ Object
- #execute ⇒ Object
- #exitStep ⇒ Object
-
#initialize(config, referencedConfigs) ⇒ CommandLine
constructor
A new instance of CommandLine.
- #startupStep ⇒ Object
Methods included from HasExecuteCommand
Constructor Details
#initialize(config, referencedConfigs) ⇒ CommandLine
Returns a new instance of CommandLine.
9 10 11 12 13 |
# File 'lib/blocks/commandLine.rb', line 9 def initialize(config, referencedConfigs) @config = config # Bake::Metamodel::CommandLine @commandLine = config.name @projectDir = config.get_project_dir end |
Instance Method Details
#clean ⇒ Object
27 28 29 30 |
# File 'lib/blocks/commandLine.rb', line 27 def clean # nothing to do here return true end |
#execute ⇒ Object
15 16 17 |
# File 'lib/blocks/commandLine.rb', line 15 def execute return executeCommand(@commandLine, nil, @config.validExitCodes) end |
#exitStep ⇒ Object
23 24 25 |
# File 'lib/blocks/commandLine.rb', line 23 def exitStep return executeCommand(@commandLine, nil, @config.validExitCodes) end |
#startupStep ⇒ Object
19 20 21 |
# File 'lib/blocks/commandLine.rb', line 19 def startupStep return executeCommand(@commandLine, nil, @config.validExitCodes) end |