lib/rundock/operation/command.rb in rundock-0.2.0 vs lib/rundock/operation/command.rb in rundock-0.2.2
- old
+ new
@@ -1,9 +1,14 @@
module Rundock
module Operation
class Command < Base
def run(backend, attributes = {})
@instruction.each do |i|
+ if i.is_a?(Hash)
+ attributes.merge!(i)
+ next
+ end
+
backend.run_commands(i, attributes)
end
end
end
end