but how can i run that???

my actual code is like:

task :start => :environment do
  #do some magic and start the cron
  while true do
    #http_request_and_response_code
 end
end
task :stop do
  #do some more magic and stop IT
  puts "stops!!!!!"
end



On Wed, May 11, 2011 at 6:52 PM, Tim Shaffer <[email protected]> wrote:

> Could you put the code in an initializer?
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to