Class SSHKit::Configuration
In: lib/sshkit/configuration.rb
Parent: Object

Methods

Attributes

backend  [W] 
default_env  [W] 
default_runner  [W] 
output  [W] 
umask  [RW] 

Public Instance methods

TODO: deprecate in favor of `use_format`

Tell SSHKit to use the specified `formatter` for stdout. The formatter can be the name of a built-in SSHKit formatter, like `:pretty`, a formatter class, like `SSHKit::Formatter::Pretty`, or a custom formatter class you‘ve written yourself.

Additional arguments will be passed to the formatter‘s constructor.

Example:

  config.use_format(:pretty)

Is equivalent to:

  config.output = SSHKit::Formatter::Pretty.new($stdout)

[Validate]