Class: SSHKit::Backend::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/opswalrus/sshkit_ext.rb

Instance Method Summary collapse

Instance Method Details

#execute_cmd(*args) ⇒ Object

Returns a SSHKit::Command



24
25
26
27
# File 'lib/opswalrus/sshkit_ext.rb', line 24

def execute_cmd(*args)
  options = { verbosity: :info, strip: true, raise_on_non_zero_exit: false }.merge(args.extract_options!)
  create_command_and_execute(args, options)
end