lib/alpha_omega/deploy.rb in alpha_omega-1.1.1 vs lib/alpha_omega/deploy.rb in alpha_omega-1.1.3
- old
+ new
@@ -51,11 +51,10 @@
_cset :ruby_loader, ""
_cset(:run_method) { fetch(:use_sudo, true) ? :sudo : :run }
_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 }
# =========================================================================
# services, logs
@@ -424,21 +423,10 @@
update_code
run "ln -nfs #{deploy_release} #{deploy_path}.new"
run "mv -T #{deploy_path}.new #{deploy_path}"
end
- desc <<-DESC
- Runs a repl in the compare release
- DESC
- task :repl do
- set :deploy_path_name, "compare"
- set :deploy_release_name, "compare"
- update_code
- run "ln -nfs #{deploy_release} #{deploy_path}.new"
- run "mv -T #{deploy_path}.new #{deploy_path}"
- end
-
namespace :rollback do
desc <<-DESC
[internal] Points the current symlink at the previous revision.
This is called by the rollback sequence, and should rarely (if
ever) need to be called directly.
@@ -659,12 +647,10 @@
end
after "deploy:build", "assets:build"
on :exit do
- unless local_only
- logger.important "uploading deploy logs: #{log_path}/#{application}-#{ENV["AO_USER"]}.log-#{Time.now.strftime('%Y%m%d-%H%M')}"
- put full_log, "#{log_path}/#{application}-#{ENV["AO_USER"]}.log-#{Time.now.strftime('%Y%m%d-%H%M')}"
- end
+ logger.important "uploading deploy logs: #{log_path}/#{application}-#{ENV["AO_USER"]}.log-#{Time.now.strftime('%Y%m%d-%H%M')}"
+ put full_log, "#{log_path}/#{application}-#{ENV["AO_USER"]}.log-#{Time.now.strftime('%Y%m%d-%H%M')}"
end
end # Capistrano::Configuratioy