Module: Airbrussh

Defined in:
lib/airbrussh/formatter.rb,
lib/airbrussh.rb,
lib/airbrussh/colors.rb,
lib/airbrussh/console.rb,
lib/airbrussh/version.rb,
lib/airbrussh/rake/context.rb,
lib/airbrussh/configuration.rb,
lib/airbrussh/capistrano/tasks.rb,
lib/airbrussh/command_formatter.rb,
lib/airbrussh/console_formatter.rb,
lib/airbrussh/log_file_formatter.rb,
lib/airbrussh/delegating_formatter.rb

Overview

This is the formatter class that conforms to the SSHKit Formatter API and provides the airbrussh functionality to SSHKit. Note however that this class doesn’t do much by itself; instead, it delegates to the ConsoleFormatter and (optionally) the LogFileFormatter, which handle the bulk of the logic.

Defined Under Namespace

Modules: Capistrano, Colors, Rake Classes: CommandFormatter, Configuration, Console, ConsoleFormatter, DelegatingFormatter, Formatter, LogFileFormatter

Constant Summary collapse

VERSION =
"1.6.0".freeze

Class Method Summary collapse

Class Method Details

.configuration(options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/airbrussh.rb', line 6

def self.configuration(options={})
  return options if options.is_a?(::Airbrussh::Configuration)
  @configuration ||= Configuration.new
  @configuration.apply_options(options)
end

.configure {|configuration| ... } ⇒ Object

Yields:



12
13
14
# File 'lib/airbrussh.rb', line 12

def self.configure
  yield(configuration)
end