lib/alpha_omega/deploy.rb in alpha_omega-1.3.20 vs lib/alpha_omega/deploy.rb in alpha_omega-1.3.21

- old
+ new

@@ -32,10 +32,11 @@ # These variables may be set in the client capfile if their default values # are not sufficient. # ========================================================================= _cset :skip_scm, false + _cset :skip_notifications, false _cset :scm, :git _cset :deploy_via, :checkout _cset(:branch) { AlphaOmega.what_branch } _cset(:revision) { source.head } @@ -51,10 +52,11 @@ _cset :ruby_loader, "" _cset(:run_method) { fetch(:use_sudo, true) ? :sudo : :run } _cset :last_pod, nil + _cset :success, false _cset (:figlet) { [%x(which figlet).strip].reject {|f| !(File.executable? f)}.first || echo } # ========================================================================= # services, logs @@ -615,9 +617,11 @@ run "rm -f #{lock_path}" end end task :finished do + run "#{figlet} success | perl -pe 's{( +)}{chr(46) x length($1)}e'" + set :success, true end end # :deploy end # Capistrano::Configuration