Sha256: 8d63e432930dd636215ac0e72d64321c05051107633c3a627e785fac9004530d

Contents?: true

Size: 469 Bytes

Versions: 21

Compression:

Stored size: 469 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do |config|
  set :reviewed, nil

  namespace :deploy do
    task :challenge do
      if dna["app_env"] == "production"
        who = Capistrano::CLI.ui.ask(" -- Who has reviewed this deploy to #{dna["app_env"]}? ")
        if who.empty?
          abort
        else
          set :reviewed, who
          sleep 3
        end
      end if reviewed.nil?
    end
  end

  before "deploy:began", "deploy:challenge"
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alpha_omega-1.3.20 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.19 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.18 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.17 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.16 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.15 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.14 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.12 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.11 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.10 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.4.1 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.4.0 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.9 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.8 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.7 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.6 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.5 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.4 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.3 lib/alpha_omega/config/deploy_challenge.rb
alpha_omega-1.3.2 lib/alpha_omega/config/deploy_challenge.rb