Module: Veewee::Command::Helpers

Included in:
Base, GroupBase
Defined in:
lib/veewee/command/helpers.rb

Instance Method Summary collapse

Instance Method Details

#initialize_environment(args, options, config) ⇒ Object

Initializes the environment by pulling the environment out of the configuration hash and sets up the UI if necessary.

Raises:

  • (Errors::CLIMissingEnvironment)


6
7
8
9
# File 'lib/veewee/command/helpers.rb', line 6

def initialize_environment(args, options, config)
  raise Errors::CLIMissingEnvironment if !config[:env]
  @env = config[:env]
end