Method: Rundock::Operation::Command#run
- Defined in:
- lib/rundock/operation/command.rb
#run(backend, attributes = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rundock/operation/command.rb', line 4 def run(backend, attributes = {}) @instruction.each do |i| if i.is_a?(Hash) attributes.merge!(i) next end logging(i, 'info') backend.run_commands( assign_args(i, attributes[:task_args]), attributes ) end end |