Module: Aptible::CLI
- Defined in:
- lib/aptible/cli.rb,
lib/aptible/cli/agent.rb,
lib/aptible/cli/error.rb,
lib/aptible/cli/version.rb,
lib/aptible/cli/renderer.rb,
lib/aptible/cli/formatter.rb,
lib/aptible/cli/helpers/app.rb,
lib/aptible/cli/helpers/ssh.rb,
lib/aptible/cli/helpers/token.rb,
lib/aptible/cli/helpers/vhost.rb,
lib/aptible/cli/renderer/base.rb,
lib/aptible/cli/renderer/json.rb,
lib/aptible/cli/renderer/text.rb,
lib/aptible/cli/formatter/list.rb,
lib/aptible/cli/formatter/node.rb,
lib/aptible/cli/formatter/root.rb,
lib/aptible/cli/helpers/system.rb,
lib/aptible/cli/helpers/tunnel.rb,
lib/aptible/cli/subcommands/db.rb,
lib/aptible/cli/formatter/value.rb,
lib/aptible/cli/subcommands/ssh.rb,
lib/aptible/cli/formatter/object.rb,
lib/aptible/cli/helpers/database.rb,
lib/aptible/cli/subcommands/apps.rb,
lib/aptible/cli/subcommands/logs.rb,
lib/aptible/cli/helpers/log_drain.rb,
lib/aptible/cli/helpers/operation.rb,
lib/aptible/cli/resource_formatter.rb,
lib/aptible/cli/subcommands/backup.rb,
lib/aptible/cli/subcommands/config.rb,
lib/aptible/cli/subcommands/deploy.rb,
lib/aptible/cli/helpers/config_path.rb,
lib/aptible/cli/helpers/environment.rb,
lib/aptible/cli/helpers/maintenance.rb,
lib/aptible/cli/subcommands/inspect.rb,
lib/aptible/cli/subcommands/rebuild.rb,
lib/aptible/cli/subcommands/restart.rb,
lib/aptible/cli/formatter/keyed_list.rb,
lib/aptible/cli/helpers/date_helpers.rb,
lib/aptible/cli/helpers/metric_drain.rb,
lib/aptible/cli/helpers/security_key.rb,
lib/aptible/cli/subcommands/services.rb,
lib/aptible/cli/subcommands/endpoints.rb,
lib/aptible/cli/subcommands/log_drain.rb,
lib/aptible/cli/subcommands/operation.rb,
lib/aptible/cli/formatter/keyed_object.rb,
lib/aptible/cli/helpers/s3_log_helpers.rb,
lib/aptible/cli/helpers/app_or_database.rb,
lib/aptible/cli/subcommands/environment.rb,
lib/aptible/cli/subcommands/maintenance.rb,
lib/aptible/cli/subcommands/metric_drain.rb,
lib/aptible/cli/formatter/grouped_keyed_list.rb,
lib/aptible/cli/helpers/vhost/option_set_builder.rb
Defined Under Namespace
Modules: Formatter, Helpers, Renderer, ResourceFormatter, Subcommands Classes: Agent, PlainLogFormatter, TtyLogFormatter, UserError
Constant Summary collapse
- VERSION =
'0.19.7'.freeze
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/aptible/cli.rb', line 43 def self.logger formatter_klass = if $stderr.tty? TtyLogFormatter else PlainLogFormatter end @logger ||= Logger.new($stderr).tap do |l| l.formatter = formatter_klass.new end end |