Class: Bake::Blocks::CommandLine

Inherits:
Object
  • Object
show all
Includes:
HasExecuteCommand
Defined in:
lib/blocks/commandLine.rb

Instance Method Summary collapse

Methods included from HasExecuteCommand

#executeCommand

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

#cleanObject



27
28
29
30
# File 'lib/blocks/commandLine.rb', line 27

def clean
  # nothing to do here

  return true
end

#executeObject



15
16
17
# File 'lib/blocks/commandLine.rb', line 15

def execute
  return executeCommand(@commandLine, nil, @config.validExitCodes)
end

#exitStepObject



23
24
25
# File 'lib/blocks/commandLine.rb', line 23

def exitStep
  return executeCommand(@commandLine, nil, @config.validExitCodes)
end

#startupStepObject



19
20
21
# File 'lib/blocks/commandLine.rb', line 19

def startupStep
  return executeCommand(@commandLine, nil, @config.validExitCodes)
end