Method: Whisk::CLI#initialize

Defined in:
lib/whisk/cli.rb

#initializeCLI

Returns a new instance of CLI.



25
26
27
28
29
30
31
32
# File 'lib/whisk/cli.rb', line 25

def initialize(*)
  super
  ::Whisk.ui = Chef::Knife::UI.new(STDOUT, STDERR, STDIN, {})
  @options = options.dup # unfreeze frozen options Hash from Thor
rescue Error => e
  Whisk.ui.fatal e
  exit e.status_code
end