Class: SSHKit::Backend::Printer

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

Overview

Printer is used to implement –dry-run in Capistrano

Instance Attribute Summary

Attributes inherited from Abstract

#host

Instance Method Summary collapse

Methods inherited from Abstract

#as, #background, #capture, config, configure, #execute, #initialize, #make, #rake, #redact, #run, #with, #within

Constructor Details

This class inherits a constructor from SSHKit::Backend::Abstract

Instance Method Details

#execute_command(cmd) ⇒ Object


7
8
9
# File 'lib/sshkit/backends/printer.rb', line 7

def execute_command(cmd)
  output.log_command_start(cmd.with_redaction)
end

#testObject


14
15
16
17
# File 'lib/sshkit/backends/printer.rb', line 14

def test(*)
  super
  true
end