Sha256: 3b7886237c51c403a82931b6934ecec57c5cbb2d0954dcebfdae6677cd5a5d71

Contents?: true

Size: 354 Bytes

Versions: 19

Compression:

Stored size: 354 Bytes

Contents

class QcPlusJobGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../templates', __FILE__)

  def generate_lib
    template "job.rb.erb", File.join("app", "jobs", class_path, "#{file_name}.rb")
    if defined?(RSpec)
      template "job_spec.rb.erb", File.join("spec", "jobs", class_path, "#{file_name}_spec.rb")
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
queue_classic_plus-4.0.0.alpha21 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha20 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha19 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha18 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha17 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha16 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha15 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha14 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha13 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha12 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha11 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha10 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha9 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-4.0.0.alpha8 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-1.1.0 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-1.0.1 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-1.0.0 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-1.0.0.alpha2 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb
queue_classic_plus-0.0.2 lib/rails/generators/qc_plus_job/qc_plus_job_generator.rb