Class: WitBot::Generators::ClearConversationsJobGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/wit_bot/clear_conversations_job/clear_conversations_job_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_jobObject



6
7
8
9
10
11
# File 'lib/generators/wit_bot/clear_conversations_job/clear_conversations_job_generator.rb', line 6

def create_job
  gem 'clockwork', '~> 1.2.0'

  template 'clock.rb', 'clock.rb'
  template 'job.rb', 'app/jobs/clear_conversations_job.rb'
end