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

- old
+ new

@@ -32,18 +32,16 @@ end valid_options? :provided => @opts, :required => [:environment, :name, :template] - @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 stack.create :attributes => merged_attributes, :template => @opts[:template] end end @@ -55,24 +53,17 @@ def merged_attributes provided_attributes = parse_attributes :attributes => @opts[:attributes] attribute_merger.merge :attributes => provided_attributes, - :config => @config, - :logger => @logger, :environment => @opts[:environment], :input_stacks => @opts[:input_stack], :template => @opts[:template] end def attribute_merger SimpleDeploy::Misc::AttributeMerger.new end - - def logger - @logger ||= SimpleDeployLogger.new :log_level => @opts[:log_level] - end - end end end