Class: Awful::Cli

Inherits:
Thor show all
Defined in:
lib/awful.rb,
lib/awful/api_gateway.rb

Instance Method Summary collapse

Constructor Details

#initialize(args = [], local_options = {}, config = {}) ⇒ Cli

Returns a new instance of Cli.



25
26
27
28
29
# File 'lib/awful.rb', line 25

def initialize(args = [], local_options = {}, config = {})
  super
  $awful_quiet = options[:quiet]                           # turn off output
  ENV['AWS_REGION'] = options[:region] if options[:region] #cmdline override for region
end

Instance Method Details

#ll(*args) ⇒ Object



208
209
210
# File 'lib/awful.rb', line 208

def ll(*args)
  invoke :ls, args, options.merge(long: true)
end

#versionObject



202
203
204
205
# File 'lib/awful.rb', line 202

def version
  puts VERSION
  exit
end