Class: BuildEm::Executor
- Inherits:
-
Object
- Object
- BuildEm::Executor
- Defined in:
- lib/buildem/executor.rb
Instance Attribute Summary collapse
-
#argz ⇒ Object
Returns the value of attribute argz.
Instance Method Summary collapse
-
#initialize(args) ⇒ Executor
constructor
A new instance of Executor.
- #name ⇒ Object
- #run ⇒ Object
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
#argz ⇒ Object
Returns the value of attribute argz.
5 6 7 |
# File 'lib/buildem/executor.rb', line 5 def argz @argz end |
Instance Method Details
#run ⇒ Object
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 |