Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
LH-510 - Use 'rake.bat' instead of 'rake' on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Nov 27, 2009
1 parent 13f3be7 commit f2ea8ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/hoptoad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
task :notify_hoptoad do
rails_env = fetch(:hoptoad_env, fetch(:rails_env, "production"))
local_user = ENV['USER'] || ENV['USERNAME']
notify_command = "rake hoptoad:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
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}"
puts "Notifying Hoptoad of Deploy (#{notify_command})"
`#{notify_command}`
puts "Hoptoad Notification Complete."
Expand Down

0 comments on commit f2ea8ef

Please sign in to comment.