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