Class: SSHKit::Backend::Skipper

Inherits:
Abstract
  • Object
show all
Defined in:
lib/sshkit/backends/skipper.rb

Instance Attribute Summary

Attributes inherited from Abstract

#host

Instance Method Summary collapse

Methods inherited from Abstract

#as, #background, #capture, config, configure, #execute, #make, #rake, #redact, #run, #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_command(cmd) ⇒ Object


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

def execute_command(cmd)
  warn "[SKIPPING] No Matching Host for #{cmd}"
end

#info(_messages) ⇒ Object Also known as: log, fatal, error, debug


17
18
19
# File 'lib/sshkit/backends/skipper.rb', line 17

def info(_messages)
  # suppress all messages except `warn`
end