lib/simple_deploy/cli/outputs.rb in simple_deploy-0.7.2 vs lib/simple_deploy/cli/outputs.rb in simple_deploy-0.7.3

- old
+ new

@@ -26,18 +26,16 @@ end valid_options? :provided => @opts, :required => [:environment, :name] - config = Config.new.environment @opts[:environment] + SimpleDeploy.create_config @opts[:environment] + logger = SimpleDeploy.logger @opts[:log_level] + stack = Stack.new :name => @opts[:name], + :environment => @opts[:environment] - stack = Stack.new :environment => @opts[:environment], - :name => @opts[:name], - :config => config, - :logger => logger - - rescue_stackster_exceptions_and_exit do + rescue_exceptions_and_exit do @outputs = stack.outputs logger.info "No outputs." unless @outputs.any? @opts[:as_command_args] ? command_args_output : default_output @@ -59,13 +57,9 @@ def default_output @outputs.each do |hash| puts "%s: %s" % [hash['OutputKey'], hash['OutputValue']] end - end - - def logger - @logger ||= SimpleDeployLogger.new :log_level => @opts[:log_level] end end end end