lib/airbrake/capistrano.rb in airbrake-4.3.0 vs lib/airbrake/capistrano.rb in airbrake-4.3.1

- old
+ new

@@ -75,10 +75,13 @@ rails_env = fetch(:rails_env, nil) airbrake_env = fetch(:airbrake_env, rack_env || rails_env || "production") local_user = ENV['USER'] || ENV['USERNAME'] executable = RUBY_PLATFORM.downcase.include?('mswin') ? fetch(:rake, 'rake.bat') : fetch(:rake, 'bundle exec rake ') directory = configuration.release_path - notify_command = "cd #{directory}; #{executable} #{'RACK_ENV='+rack_env if rack_env} #{'RAILS_ENV='+rails_env if rails_env} airbrake:deploy TO=#{airbrake_env} REVISION=#{current_revision} REPO=#{repository} USER=#{Airbrake::Capistrano::shellescape(local_user)}" + notify_command = "cd #{directory}; #{executable}" + notify_command << " RACK_ENV=#{rack_env}" if rack_env + notify_command << " RAILS_ENV=#{rails_env}" if rails_env + notify_command << " airbrake:deploy TO=#{airbrake_env} REVISION=#{current_revision} REPO=#{repository} USER=#{Airbrake::Capistrano::shellescape(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 logger.info "DRY RUN: Notification not actually run."