lib/airbrake/capistrano.rb in airbrake-3.1.8 vs lib/airbrake/capistrano.rb in airbrake-3.1.9

- old
+ new

@@ -17,10 +17,10 @@ task :deploy, :except => { :no_release => true } do rails_env = fetch(:rails_env, "production") airbrake_env = fetch(:airbrake_env, fetch(:rails_env, "production")) local_user = ENV['USER'] || ENV['USERNAME'] executable = RUBY_PLATFORM.downcase.include?('mswin') ? fetch(:rake, 'rake.bat') : fetch(:rake, 'rake') - directory = configuration.current_release + directory = configuration.release_path notify_command = "cd #{directory}; #{executable} RAILS_ENV=#{rails_env} airbrake:deploy TO=#{airbrake_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}" notify_command << " DRY_RUN=true" if dry_run notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY'] logger.info "Notifying Airbrake of Deploy (#{notify_command})" if configuration.dry_run