Class: Elibri::Connect::WheneverGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/elibri/connect/whenever/whenever_generator.rb

Instance Method Summary collapse

Instance Method Details

#wheneverObject



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