Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Display API_KEY in notify command, if present.

  • Loading branch information...
commit 6787c3ff339eddf2e99114fa66d0be9cca3b4eaf 1 parent 4d7181f
@tristandunn tristandunn authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  recipes/hoptoad.rb
View
1  recipes/hoptoad.rb
@@ -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."
Please sign in to comment.
Something went wrong with that request. Please try again.