Script/Runner and passing parameters

Jim Jones
Fri, 09 Nov 2007 18:35:51 -0000

I am calling a model from cron using script/runner.  My call looks like
this :

/usr/local/bin/ruby script/runner -e production
"ProfileBox.updateProfileBoxes"

I need to be able to pass parameters to this model.   Something like
this :

/usr/local/bin/ruby script/runner -e production
"ProfileBox.updateProfileBoxes" param1 param2


How can I pass parameters to this model?
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---