lib/alpha_omega/deploy.rb in alpha_omega-1.3.24 vs lib/alpha_omega/deploy.rb in alpha_omega-1.3.25
- old
+ new
@@ -34,10 +34,11 @@
# =========================================================================
_cset :skip_scm, false
_cset :skip_notifications, false
_cset :skip_performance, true
+ _cset :skip_performance_task, ""
_cset :scm, :git
_cset :deploy_via, :checkout
_cset(:branch) { AlphaOmega.what_branch }
_cset(:revision) { source.head }
@@ -617,14 +618,17 @@
if want_unlock
run "rm -f #{lock_path}"
end
end
- task :finished do
- run "#{figlet} success | perl -pe 's{( +)}{chr(46) x length($1)}e'"
+ task :successful, :only => { :primary => true } do
set :success, true
+ run_locally"#{figlet} success | perl -pe 's{( +)}{chr(46) x length($1)}e'"
end
+ task :finished do
+ successful
+ end
end # :deploy
end # Capistrano::Configuration
require 'alpha_omega/config/deploy'