Module: Veewee::Command::Helpers
Instance Method Summary collapse
-
#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.
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.
6 7 8 9 10 |
# File 'lib/veewee/command/helpers.rb', line 6 def initialize_environment(args, , config) raise Errors::CLIMissingEnvironment if !config[:env] @env = config[:env] @env.cwd = File.(@options[:cwd]) if @options[:cwd] end |