Skip to content

Commit

Permalink
Use fail over exit
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydwatkin committed Jul 4, 2024
1 parent b3e8701 commit 70bf1b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/capistrano/asg/tasks/rolling.rake
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace :rolling do
end
else
logger.error 'No instances have been launched. Are you using a configuration with rolling deployments?'
exit 1
fail
end
end

Expand All @@ -139,7 +139,7 @@ namespace :rolling do
end
else
logger.error 'No instances have been launched. Are you using a configuration with rolling deployments?'
exit 1
fail
end

invoke 'deploy'
Expand Down Expand Up @@ -206,7 +206,7 @@ namespace :rolling do
logger.info "Auto Scaling Group: **#{name}**, completed with status '#{refresh.status}'."
end
end
exit 1 if failed
fail if failed
end
end
end

0 comments on commit 70bf1b2

Please sign in to comment.