Class: Elibri::Connect::WheneverGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Elibri::Connect::WheneverGenerator
- Defined in:
- lib/generators/elibri/connect/whenever/whenever_generator.rb
Instance Method Summary collapse
Instance Method Details
#whenever ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/elibri/connect/whenever/whenever_generator.rb', line 6 def whenever create_file "config/schedule.rb", %Q{every 6.hours do runner "Elibri::Connect.update_products" end} end |