Browse files

LH-510 - Use 'rake.bat' instead of 'rake' on Windows.

  • Loading branch information...
1 parent 13f3be7 commit f2ea8ef80a45326bbc2f73526cca384c52f599bc @tristandunn tristandunn committed Nov 27, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 recipes/hoptoad.rb
View
3 recipes/hoptoad.rb
@@ -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."

0 comments on commit f2ea8ef

Please sign in to comment.