lib/simple_deploy/cli/update.rb in simple_deploy-0.7.2 vs lib/simple_deploy/cli/update.rb in simple_deploy-0.7.3
- old
+ new
@@ -28,26 +28,22 @@
end
valid_options? :provided => @opts,
:required => [:environment, :name]
- config = Config.new.environment @opts[:environment]
+ SimpleDeploy.create_config @opts[:environment]
+ SimpleDeploy.logger @opts[:log_level]
attributes = parse_attributes :attributes => @opts[:attributes]
@opts[:name].each do |name|
- stack = Stack.new :environment => @opts[:environment],
- :name => name,
- :config => config,
- :logger => logger
- rescue_stackster_exceptions_and_exit do
+ stack = Stack.new :name => name,
+ :environment => @opts[:environment]
+
+ rescue_exceptions_and_exit do
stack.update :force => @opts[:force], :attributes => attributes
end
end
- end
-
- def logger
- @logger ||= SimpleDeployLogger.new :log_level => @opts[:log_level]
end
def command_summary
'Update the attributes for one more stacks'
end