lib/capistrano/tasks/tampon.cap in capistrano-tampon-3.0.2 vs lib/capistrano/tasks/tampon.cap in capistrano-tampon-3.0.3

- old
+ new

@@ -46,11 +46,11 @@ Tampon::Configuration.ablerc.stub.generate :local exit end task :tag_staging do - staging_destination = :deploy_from + staging_destination = deploy_from set :branch, staging_destination end desc "Show available releases" @@ -60,16 +60,16 @@ desc "Push the approved tag to production. Pass in tag to deploy with '-s tag=staging-YYYY-MM-DD-X-feature'." task :tag_production do - production_destination = deploy_from + production_destination = deploy_from - really_deploy = Capistrano::CLI.ui.ask("Do you really want to deploy #{production_destination}? [y/N]").to_url + set :really_deploy, ask("Do you really want to deploy #{production_destination}?", "N") - exit(1) unless really_deploy =~ /^[Yy]$/ + exit(1) unless fetch(:really_deploy) =~ /^[Yy]$/ - set :branch, production_destination + set :branch, production_destination end end namespace :deploy do namespace :pending do