Sha256: ca8efcee0c7ca6806be31c20fac050ca07b470999812262eafbdf0ab8c26b9d2
Contents?: true
Size: 774 Bytes
Versions: 33
Compression:
Stored size: 774 Bytes
Contents
# redefine the notify task without after hooks, so we can use them in # specific stages only. namespace :airbrake do desc "Notify airbrake of the deployment" task :notify, :except => { :no_release => true } do rails_env = fetch(:airbrake_env, fetch(:rails_env, "production")) local_user = ENV['USER'] || ENV['USERNAME'] executable = fetch(:rake, 'rake') notify_command = "cd #{current_release}; #{executable} RAILS_ENV=#{rails_env} airbrake:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}" logger.info "Notifying Airbrake of Deploy (#{notify_command})" result = "" run(notify_command, :once => true) { |ch, stream, data| result << data } logger.info "Airbrake Notification Complete." end end
Version data entries
33 entries across 33 versions & 1 rubygems