Permalink
Browse files

Display API_KEY in notify command, if present.

  • Loading branch information...
1 parent 4d7181f commit 6787c3ff339eddf2e99114fa66d0be9cca3b4eaf @tristandunn tristandunn committed Nov 27, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 recipes/hoptoad.rb
View
@@ -16,6 +16,7 @@
local_user = ENV['USER'] || ENV['USERNAME']
executable = RUBY_PLATFORM.downcase.include?('mswin') ? 'rake.bat' : 'rake'
notify_command = "#{executable} hoptoad:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
+ notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY']
puts "Notifying Hoptoad of Deploy (#{notify_command})"
`#{notify_command}`
puts "Hoptoad Notification Complete."

0 comments on commit 6787c3f

Please sign in to comment.