Module: Mccloud::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 |
# File 'lib/mccloud/command/helpers.rb', line 6 def initialize_environment(args, , config) raise ::Mccloud::Error,"CLI Missing Environment" if !config[:env] @env = config[:env] end |