Class: SchedulerGenerator
- Inherits:
-
Rails::Generator::Base
- Object
- Rails::Generator::Base
- SchedulerGenerator
- Defined in:
- lib/scheduler_daemon/rails/generators/scheduler/scheduler_generator.rb
Instance Method Summary collapse
Instance Method Details
#banner ⇒ Object
2 3 4 |
# File 'lib/scheduler_daemon/rails/generators/scheduler/scheduler_generator.rb', line 2 def "Usage: #{$0} #{spec.name}" end |
#manifest ⇒ Object
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 |