Class: SSHKit::Backend::Skipper
- Defined in:
- lib/sshkit/backends/skipper.rb
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
- #execute(*args) ⇒ Object (also: #upload!, #download!, #test, #invoke)
- #info(messages) ⇒ Object (also: #log, #fatal, #error, #debug, #trace)
-
#initialize(&block) ⇒ Skipper
constructor
A new instance of Skipper.
Methods inherited from Printer
Methods included from CommandHelper
Methods inherited from Abstract
#as, #capture, config, configure, #make, #rake, #run, #warn, #with, #within
Constructor Details
#initialize(&block) ⇒ Skipper
Returns a new instance of Skipper.
6 7 8 |
# File 'lib/sshkit/backends/skipper.rb', line 6 def initialize(&block) @block = block end |
Instance Method Details
#execute(*args) ⇒ Object Also known as: upload!, download!, test, invoke
10 11 12 13 14 |
# File 'lib/sshkit/backends/skipper.rb', line 10 def execute(*args) command(*args).tap do |cmd| warn "[SKIPPING] No Matching Host for #{cmd}" end end |
#info(messages) ⇒ Object Also known as: log, fatal, error, debug, trace
20 21 22 |
# File 'lib/sshkit/backends/skipper.rb', line 20 def info() # suppress all messages except `warn` end |