Class: MaintenanceJobGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- MaintenanceJobGenerator
- Defined in:
- lib/generators/maintenance_job_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_job_files ⇒ Object
4 5 6 7 |
# File 'lib/generators/maintenance_job_generator.rb', line 4 def generate_job_files template "maintenance_job.rb.erb", "app/jobs/maintenance/#{file_name}_job.rb" template "maintenance_job_test.rb.erb", "test/jobs/maintenance/#{file_name}_job_test.rb" end |