lib/jets/aws_services/stack_status.rb in jets-2.2.5 vs lib/jets/aws_services/stack_status.rb in jets-2.3.0
- old
+ new
@@ -2,10 +2,11 @@
module StackStatus
# Only cache if it is true because the initial deploy checks live status until a stack exists.
@@stack_exists_cache = [] # helps with CloudFormation rate limit
def stack_exists?(stack_name)
return false if ENV['TEST']
+ return true if ENV['JETS_BUILD_NO_INTERNET']
return true if @@stack_exists_cache.include?(stack_name)
exist = nil
begin
# When the stack does not exist an exception is raised. Example:
@@ -58,6 +59,6 @@
def lookup(outputs, key)
out = outputs.find { |o| o.output_key == key }
out&.output_value
end
end
-end
\ No newline at end of file
+end