Class: SSHKit::Backend::Printer
Direct Known Subclasses
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(command, args = []) ⇒ Object
16
17
18
|
# File 'lib/sshkit/backends/printer.rb', line 16
def capture(command, args=[])
raise MethodUnavailableError
end
|
#execute(*args) ⇒ Object
12
13
14
|
# File 'lib/sshkit/backends/printer.rb', line 12
def execute(*args)
output << command(*args)
end
|
#run ⇒ Object
8
9
10
|
# File 'lib/sshkit/backends/printer.rb', line 8
def run
instance_exec(host, &@block)
end
|