lib/simple_deploy/cli.rb in simple_deploy-0.0.3 vs lib/simple_deploy/cli.rb in simple_deploy-0.1.0
- old
+ new
@@ -38,12 +38,13 @@
exit 1
end
read_attributes
- unless @cmd == 'artifacts' || @cmd == 'environments'
- @config = Config.new.environment(@opts[:environment])
+ unless @cmd == 'environments'
+ @config = Config.new.environment @opts[:environment]
+
unless environment_provided?
puts "Please specify an environment."
exit 1
end
end
@@ -58,12 +59,9 @@
end
case @cmd
when 'attributes'
@stack.attributes.each_pair { |k, v| puts "#{k}: #{v}" }
- when 'artifacts'
- a = ArtifactLister.new
- puts a.summary
when 'create'
@stack.create :attributes => attributes,
:template => @opts[:template]
puts "#{@opts[:name]} created."
when 'delete', 'destroy'