Module: Admiral::Base

Defined in:
lib/admiral/base.rb

Class Method Summary collapse

Class Method Details

.extended(thor) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/admiral/base.rb', line 3

def self.extended(thor)
  thor.class_eval do

    class_option :environment,
      desc: 'The environment (e.g. staging or production). Can also be specified with ADMIRAL_ENV.',
      default: ENV['ADMIRAL_ENV'] || 'production',
      aliases: '--env'

  end
end