From 8ba7e6a47abe24969bfc929aed2d0ca8d4015d76 Mon Sep 17 00:00:00 2001 From: Jeff Fraser Date: Fri, 9 Feb 2018 09:20:26 -0500 Subject: [PATCH] Provide a way to skiop LC/AMI generation --- lib/capistrano/asg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/asg.rb b/lib/capistrano/asg.rb index 8b3bbbd..2e2f889 100644 --- a/lib/capistrano/asg.rb +++ b/lib/capistrano/asg.rb @@ -48,7 +48,7 @@ def autoscale(groupname, *args) end end - if asg_instances.count > 0 + if asg_instances.count > 0 && fetch(:create_ami, true) after('deploy:finishing', 'asg:scale') else puts 'Autoscaling: AMI could not be created because no running instances were found.\