Method: Sunshine::Shell#call

Defined in:
lib/sunshine/shell.rb

#call(cmd, options = {}, &block) ⇒ Object

Execute a command on the local system and return the output.



78
79
80
81
82
# File 'lib/sunshine/shell.rb', line 78

def call cmd, options={}, &block
  Sunshine.logger.info @host, "Running: #{cmd}" do
    execute sudo_cmd(cmd, options), &block
  end
end