Class: SchedulerGenerator

Inherits:
Rails::Generator::Base
  • Object
show all
Defined in:
lib/scheduler_daemon/rails/generators/scheduler/scheduler_generator.rb

Instance Method Summary collapse

Instance Method Details



2
3
4
# File 'lib/scheduler_daemon/rails/generators/scheduler/scheduler_generator.rb', line 2

def banner
  "Usage: #{$0} #{spec.name}"
end

#manifestObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/scheduler_daemon/rails/generators/scheduler/scheduler_generator.rb', line 6

def manifest
  record do |m|
    m.directory File.join('lib', 'scheduled_tasks')

    m.template 'lib/scheduled_tasks/session_cleaner_task.rb',
      'lib/scheduled_tasks/session_cleaner_task.rb'
    
    m.readme('README')
  end
end