Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix: allowing deprecated use of :hoptoad_api_key in cap deploys

  • Loading branch information...
commit 346dffe658e7a2ae72c1eb68abfbf4f407c7d382 1 parent 163f9f8
Stephen George authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/toadhopper/capistrano.rb
2  lib/toadhopper/capistrano.rb
@@ -9,7 +9,7 @@
9 9 desc 'Notify Airbrake of the deployment'
10 10 task :notify_airbrake, :except => {:no_release => true} do
11 11 framework_env = fetch(:rails_env, fetch(:airbrake_env, 'production'))
12   - api_key = fetch(:airbrake_api_key) || fetch(:hoptoad_api_key)
  12 + api_key = fetch(:hoptoad_api_key, nil) || fetch(:airbrake_api_key)
13 13 puts 'Notifying Airbrake of deploy'
14 14 options = {:framework_env => framework_env, :scm_revision => current_revision, :scm_repository => repository}
15 15 Toadhopper(api_key).deploy!(options)

0 comments on commit 346dffe

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