Skip to content

Commit

Permalink
pass the local username to the rake task as USER
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Pytel authored and Tammer Saleh committed Apr 3, 2009
1 parent decff9b commit 4c3cb49
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 @@ -13,6 +13,7 @@
task :notify_hoptoad, :roles => :app do
rake = fetch(:rake, "rake")
rails_env = fetch(:rails_env, "production")
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} hoptoad:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository}"
local_user = ENV['USER'] || ENV['USERNAME']
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} hoptoad:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
end
end

0 comments on commit 4c3cb49

Please sign in to comment.