class Bake::Blocks::CommandLine

Public Class Methods

new(config) click to toggle source
# File lib/blocks/commandLine.rb, line 9
def initialize(config)
  @config = config # Bake::Metamodel::CommandLine
  @commandLine = config.name.kind_of?(Array) ? config.name.join(' ') : config.name
  @projectDir = config.get_project_dir
end

Public Instance Methods

clean() click to toggle source
# File lib/blocks/commandLine.rb, line 36
def clean
  # nothing to do here
  return true
end
cleanStep() click to toggle source
# File lib/blocks/commandLine.rb, line 32
def cleanStep
  return run()
end
execute() click to toggle source
# File lib/blocks/commandLine.rb, line 20
def execute
  return run()
end
exitStep() click to toggle source
# File lib/blocks/commandLine.rb, line 28
def exitStep
  return run()
end
run() click to toggle source
# File lib/blocks/commandLine.rb, line 15
def run
  return true if Bake.options.linkOnly
  return executeCommand(@commandLine, nil, @config.validExitCodes, @config.echo)
end
startupStep() click to toggle source
# File lib/blocks/commandLine.rb, line 24
def startupStep
  return run()
end