lib/alpha_omega/deploy.rb in alpha_omega-0.0.62 vs lib/alpha_omega/deploy.rb in alpha_omega-0.0.63

- old
+ new

@@ -45,10 +45,11 @@ _cset :bundler_options, "--deployment --without development test" _cset :ruby_loader, "" _cset :current_pod, "default" _cset :last_pod, nil + _cset :local_only, ENV['LOCAL_ONLY'] ? true : false _cset (:figlet) { [%x(which figlet).strip].reject {|f| !(File.executable? f)}.first || echo } _cset :admin_hosts, /^/ _cset :gateway_host, "localhost" @@ -572,10 +573,12 @@ set :gateway, ENV["GATEWAY"] ? ENV["GATEWAY"] : gateway_host end end on :exit do - put full_log, "#{log_path}/#{application}_last_deploy-#{release_name}-#{branch.gsub(/\W+/,"_")}.log-#{Time.now.strftime('%Y%m%d-%H%M')}" + unless local_only + put full_log, "#{log_path}/#{application}_last_deploy-#{release_name}-#{branch.gsub(/\W+/,"_")}.log-#{Time.now.strftime('%Y%m%d-%H%M')}" + end end end # Capistrano::Configuration