Sha256: 1e551cc08fac47bda42bcc7065d920a217b0f88ece017495fa8eb632c2c7d202
Contents?: true
Size: 631 Bytes
Versions: 4
Compression:
Stored size: 631 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do |config| set :reviewed, nil namespace :deploy do task :challenge do if dna["app_env"] == "production" a, b = rand(10), rand(10) if Capistrano::CLI.ui.ask(" -- WARNING: Accessing production, please think: #{a} + #{b} = ").downcase.strip.to_i != (a + b) oops abort else sleep(3) end unless ENV['FLAGS_tag'] && !ENV['FLAGS_tag'].empty? puts "Did not specify a tag for production" abort end end end end before "deploy:began", "deploy:challenge" end
Version data entries
4 entries across 4 versions & 1 rubygems