Module: Trooper

Defined in:
lib/trooper.rb,
lib/trooper/cli.rb,
lib/trooper/host.rb,
lib/trooper/action.rb,
lib/trooper/logger.rb,
lib/trooper/runner.rb,
lib/trooper/arsenal.rb,
lib/trooper/version.rb,
lib/trooper/dsl/rake.rb,
lib/trooper/strategy.rb,
lib/trooper/dsl/bundler.rb,
lib/trooper/dsl/folders.rb,
lib/trooper/config/action.rb,
lib/trooper/configuration.rb,
lib/trooper/config/defaults.rb,
lib/trooper/config/strategy.rb,
lib/trooper/config/environment.rb,
lib/trooper/actions/default_action.rb,
lib/trooper/actions/install_gems_action.rb,
lib/trooper/actions/setup_trooper_action.rb,
lib/trooper/actions/restart_server_action.rb,
lib/trooper/actions/setup_database_action.rb,
lib/trooper/actions/clone_repository_action.rb,
lib/trooper/actions/migrate_database_action.rb,
lib/trooper/actions/rollback_migrate_action.rb,
lib/trooper/actions/precompile_assets_action.rb,
lib/trooper/actions/update_repository_action.rb,
lib/trooper/actions/prepare_prerequisite_action.rb

Defined Under Namespace

Modules: Actions, Config, DSL, Version Classes: Action, Arsenal, CLI, CliArgumentError, Configuration, Host, InvalidActionError, LogFormat, Logger, MalformedCommandError, MissingActionError, MissingStrategyError, NoConfigurationFileError, Runner, StdError, Strategy, TrooperError

Class Method Summary collapse

Class Method Details

.loggerObject



81
82
83
84
85
86
87
88
89
# File 'lib/trooper/logger.rb', line 81

def self.logger
  @logger ||= begin
    logger = Logger.new($stdout)
    logger.level = $trooper_log_level || ::Logger::INFO
    logger.progname = 'Trooper'
    logger.formatter = LogFormat.new
    logger
  end
end