Thank you so much for your reply Adam. As expected, heroku is working beyond my expectations.
Using environment variables in rake tasks is a great way of avoiding interactive rake prompts. --Keenan On Aug 7, 2009, at 3:12 PM, Adam Wiggins wrote: > > On Thu, Aug 6, 2009 at 11:09 AM, Keenan<[email protected]> wrote: >> I'm trying to write a rake task that requires additional data >> >> command: >> rake USER=user1 lovdbyless:admin >> >> rake file: >> >> namespace :lovdbyless do >> task :admin => :environment do >> login=ENV['ADMIN'] > > You need to use ENV['USER'], or else pass ADMIN= on the command line: > > heroku rake ADMIN=user1 lovdbyless:admin > > Adam > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
