Sha256: 4d3608b1b15ac0fb73ce4a88a37ea19b4903d15f83f40afd817c55aca8dc6557

Contents?: true

Size: 367 Bytes

Versions: 90

Compression:

Stored size: 367 Bytes

Contents

module SuckerPunch
  module Generators
    class JobGenerator < Rails::Generators::NamedBase
      source_root File.expand_path("../templates", __FILE__)

      desc <<desc
description:
    create job in app/jobs directory
desc

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

Version data entries

90 entries across 90 versions & 2 rubygems

Version Path
harbr-0.1.70 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.69 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.68 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.67 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.66 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.65 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.64 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.63 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.62 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.61 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.60 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.59 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.58 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.57 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.56 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.55 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.54 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.53 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.52 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb
harbr-0.1.50 vendor/bundle/ruby/3.2.0/gems/sucker_punch-3.1.0/lib/generators/sucker_punch/job_generator.rb