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

- old
+ new

@@ -24,23 +24,17 @@ end valid_options? :provided => @opts, :required => [:environment, :name] - config = Config.new.environment @opts[:environment] + SimpleDeploy.create_config @opts[:environment] + 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 jj stack.events @opts[:count] end - end - - def logger - @logger ||= SimpleDeployLogger.new :log_level => @opts[:log_level] end def command_summary "Show events for a stack" end