Skip to content
Browse files

Fix: allowing deprecated use of :hoptoad_api_key in cap deploys

  • Loading branch information...
1 parent 163f9f8 commit 346dffe658e7a2ae72c1eb68abfbf4f407c7d382 @sfgeorge committed Dec 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/toadhopper/capistrano.rb
View
2 lib/toadhopper/capistrano.rb
@@ -9,7 +9,7 @@
desc 'Notify Airbrake of the deployment'
task :notify_airbrake, :except => {:no_release => true} do
framework_env = fetch(:rails_env, fetch(:airbrake_env, 'production'))
- api_key = fetch(:airbrake_api_key) || fetch(:hoptoad_api_key)
+ api_key = fetch(:hoptoad_api_key, nil) || fetch(:airbrake_api_key)
puts 'Notifying Airbrake of deploy'
options = {:framework_env => framework_env, :scm_revision => current_revision, :scm_repository => repository}
Toadhopper(api_key).deploy!(options)

0 comments on commit 346dffe

Please sign in to comment.
Something went wrong with that request. Please try again.