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

rubocop:disable Style/AsciiComments

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"1.5.3".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