Class: SSHKit::Backend::Netssh
Instance Attribute Summary
Attributes inherited from Abstract
#host
Instance Method Summary
collapse
#make, #rake
Methods inherited from Abstract
#as, #initialize, #make, #rake, #with, #within
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
|
#run ⇒ Object
10
11
12
|
# File 'lib/sshkit/backends/netssh.rb', line 10
def run
instance_exec(host, &@block)
end
|