_docker/control.rb
#
# Tries to load the environment specified or aborts if the environment does not exist
#
Tries to load the environment specified or aborts if the environment does not exist
Tries to load the environment specified or aborts if the environment does not exist
def load_environment(tasks)
  environment = tasks[:environment]
  if environment.nil?
    Kernel.abort("Unable to load details of environment '#{tasks[:environment_name]}'")
  end
  environment
end
def load_environment ( tasks ) environment = tasks [ :environment ] if environment . nil? Kernel . abort ( "Unable to load details of environment '#{tasks[:environment_name]}'" ) end environment end
Tries to load the environment specified or aborts if the environment does not exist
Tries to load the environment specified or aborts if the environment does not exist
tasks