lib/chef_metal/machine/basic_machine.rb in chef-metal-0.7 vs lib/chef_metal/machine/basic_machine.rb in chef-metal-0.8
- old
+ new
@@ -21,17 +21,17 @@
def converge(action_handler)
convergence_strategy.converge(action_handler, self)
end
- def execute(action_handler, command)
+ def execute(action_handler, command, options = {})
action_handler.converge_by "run '#{command}' on #{node['name']}" do
- transport.execute(command).error!
+ transport.execute(command, options).error!
end
end
- def execute_always(command)
- transport.execute(command)
+ def execute_always(command, options = {})
+ transport.execute(command, options)
end
def read_file(path)
transport.read_file(path)
end