Class: BuildEm::Executor

Inherits:
Object
  • Object
show all
Defined in:
lib/buildem/executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Executor

Returns a new instance of Executor.



7
8
9
# File 'lib/buildem/executor.rb', line 7

def initialize(args)
  @argz ||= args
end

Instance Attribute Details

#argzObject

Returns the value of attribute argz.



5
6
7
# File 'lib/buildem/executor.rb', line 5

def argz
  @argz
end

Instance Method Details

#nameObject



11
12
13
# File 'lib/buildem/executor.rb', line 11

def name
  BuildEm::Executor
end

#runObject



15
16
17
18
19
20
21
22
# File 'lib/buildem/executor.rb', line 15

def run
  # queued_run "publish.sh", :output => "publish_output.out", :errors => "publish_errors.out"
  begin
    puts `#{argz[0]} #{redirect_standard_err_and_out}`
  rescue Exception => e
    puts e
  end
end