Module: Net::SSH::Connection::Perform

Included in:
LocalSession, Session
Defined in:
lib/ssh/perform.rb

Instance Method Summary collapse

Instance Method Details

#perform!(command, options) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/ssh/perform.rb', line 2

def perform!(command, options)
  if options.verbose
    tell! command
  else
    exec! command
  end
end