Class: SSHKit::Backend::Netssh

Inherits:
Printer show all
Includes:
CommandHelper
Defined in:
lib/sshkit/backends/netssh.rb

Instance Attribute Summary

Attributes inherited from Abstract

#host

Instance Method Summary collapse

Methods included from CommandHelper

#make, #rake

Methods inherited from Abstract

#as, #initialize, #make, #rake, #with, #within

Constructor Details

This class inherits a constructor from SSHKit::Backend::Abstract

Instance Method Details

#capture(*args) ⇒ Object



18
19
20
# File 'lib/sshkit/backends/netssh.rb', line 18

def capture(*args)
  _execute(*args).stdout.strip
end

#execute(*args) ⇒ Object



14
15
16
# File 'lib/sshkit/backends/netssh.rb', line 14

def execute(*args)
  _execute(*args).success?
end

#runObject



10
11
12
# File 'lib/sshkit/backends/netssh.rb', line 10

def run
  instance_exec(host, &@block)
end