Class: SSHKit::Backend::Printer

### Home Classes Methods

### In Files

- lib/sshkit/backends/printer.rb

### Parent

SSHKit::Backend::Abstract

### Methods

- #capture
- #capture!
- #download!
- #execute
- #run
- #test
- #upload!

### Included Modules

- SSHKit::CommandHelper

### Class/Module Index

Quicksearch

- SSHKit
- SSHKit::Backend
- SSHKit::Backend::Abstract
- SSHKit::Backend::ConnectionPool
- SSHKit::Backend::Local
- SSHKit::Backend::Netssh
- SSHKit::Backend::Netssh::Configuration
- SSHKit::Backend::Printer
- SSHKit::Backend::Skipper
- SSHKit::CommandMap
- SSHKit::CommandMap::CommandHash
- SSHKit::CommandMap::PrefixProvider
- SSHKit::Configuration
- SSHKit::Coordinator
- SSHKit::DSL
- SSHKit::Formatter
- SSHKit::Formatter::Abstract
- SSHKit::Formatter::BlackHole
- SSHKit::Formatter::Dot
- SSHKit::Formatter::Pretty
- SSHKit::Formatter::SimpleText
- SSHKit::Host
- SSHKit::HostWithPortParser
- SSHKit::HostWithUsernameAndPortParser
- SSHKit::HostWithUsernameParser
- SSHKit::IPv6HostWithPortParser
- SSHKit::LogMessage
- SSHKit::Logger
- SSHKit::Logger::SSHKit
- SSHKit::Logger::SSHKit::Logger
- SSHKit::Logger::SSHKit::Logger::Net
- SSHKit::Logger::SSHKit::Logger::Net::SSH
- SSHKit::Logger::SSHKit::Logger::Net::SSH::LogLevelShim
- SSHKit::Runner
- SSHKit::Runner::Abstract
- SSHKit::Runner::ExecuteError
- SSHKit::Runner::Group
- SSHKit::Runner::Null
- SSHKit::Runner::Parallel
- SSHKit::Runner::Sequential
- SSHKit::SimpleHostParser
- SSHKit::Utils
- SSHKit::Utils::CaptureOutputMethods
- Net
- Net::SSH
- Net::SSH::Config
- Array
- Color
- Hash
- Object

No matching classes.

# SSHKit::Backend::Printer

### Public Instance Methods

capture(*args) click to toggle source

    # File lib/sshkit/backends/printer.rb, line 21
    def capture(*args)
      String.new.tap { execute(*args) }
    end

Also aliased as: capture!
capture!(*args) click to toggle source
Alias for: capture
download!(*args) click to toggle source
Alias for: execute
execute(*args) click to toggle source

    # File lib/sshkit/backends/printer.rb, line 12
    def execute(*args)
      command(*args).tap do |cmd|
        output << cmd
      end
    end

Also aliased as: upload!, download!, test
run() click to toggle source

    # File lib/sshkit/backends/printer.rb, line 8
    def run
      instance_exec(host, &@block)
    end

test(*args) click to toggle source
Alias for: execute
upload!(*args) click to toggle source
Alias for: execute

[Validate]

Generated with the Darkfish Rdoc Generator 2.