Class: SuckerPunch::Generators::JobGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/sucker_punch/job_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_job_fileObject


11
12
13
# File 'lib/generators/sucker_punch/job_generator.rb', line 11

def create_job_file
  template 'job.rb', File.join('app/jobs', class_path, "#{file_name}_job.rb")
end