Capistrano Confirmation

This gem prompts you for a confirmation before deploy.

It is a slightly modified version of jinzhu's gem.

Usage

Add to your gemfile.

gem 'capistrano-confirmation'

Add to deploy.rb

require 'capistrano/confirmation'
set :confirm_stages, "production" # or: set :confirm_stages, [:production, :staging]

Demo Output

    ==============================================================================================================

      WARNING: You're about to perform actions on Yelp PRODUCTION server(s).
      Current branch is set to master.
      Please confirm that your mental health is stable:

      What is 2 + 3?

    ==============================================================================================================