lib/simple_deploy/stack.rb in simple_deploy-0.6.4 vs lib/simple_deploy/stack.rb in simple_deploy-0.6.5
- old
+ new
@@ -85,17 +85,21 @@
info['privateIpAddress']
else
info['ipAddress']
end
end
- end.flatten
+ end.flatten.compact
end
def status
stack.status
end
+ def wait_for_stable
+ stack.wait_for_stable
+ end
+
def exists?
stack.status
true
rescue Stackster::Exceptions::UnknownStack
false
@@ -110,16 +114,15 @@
end
def template
JSON.parse stack.template
end
-
+
private
def stack
stackster_config = @config.environment @environment
- @stack ||= Stackster::Stack.new :environment => @environment,
- :name => @name,
+ @stack ||= Stackster::Stack.new :name => @name,
:config => stackster_config,
:logger => @logger
end
def stack_attribute_formater