lib/jets/aws_services/stack_status.rb in jets-2.3.0 vs lib/jets/aws_services/stack_status.rb in jets-2.3.1
- old
+ new
@@ -1,10 +1,10 @@
module Jets::AwsServices
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 false if Jets.env.test?
return true if ENV['JETS_BUILD_NO_INTERNET']
return true if @@stack_exists_cache.include?(stack_name)
exist = nil
begin