Class: SSHKit::Backend::Skipper

Inherits:
Printer show all
Defined in:
lib/sshkit/backends/skipper.rb

Instance Attribute Summary

Attributes inherited from Abstract

#host

Instance Method Summary collapse

Methods inherited from Printer

#capture, #run

Methods included from CommandHelper

#make, #rake

Methods inherited from Abstract

#as, #background, #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(messages)
  # suppress all messages except `warn`
end