I have methods that execute Nokogiri. i.e. Download pages, extract content, copy to another tables... etc.
This methods are inside helper that I need to run periodically by rake task.
Whats the proper way to call the methods in a task DRY.
Move code to task files Move to models, plain ruby Some other advice....?
Please provide an example of rake task including helper
BTW: I don't like to introduce jobs, due to adding another infrastructure issues. I'd prefer rake task for the moment. In the future I'd like to move to some background jobs framework like Sidekiq or similar