Sha256: 7cfc8bb2498b3ddfd83399038372f28e12c419927c852c7e79696d7a37e8b442

Contents?: true

Size: 589 Bytes

Versions: 14

Compression:

Stored size: 589 Bytes

Contents

class DelayedJobGenerator < Rails::Generator::Base
  default_options :skip_migration => false
  
  def manifest
    record do |m|
      m.template 'script', 'script/delayed_job', :chmod => 0755
      unless options[:skip_migration]
        m.migration_template "migration.rb", 'db/migrate',
                             :migration_file_name => "create_delayed_jobs"
      end
    end
  end
  
protected

  def add_options!(opt)
    opt.separator ''
    opt.separator 'Options:'
    opt.on("--skip-migration", "Don't generate a migration") { |v| options[:skip_migration] = v }
  end
  
end

Version data entries

14 entries across 14 versions & 9 rubygems

Version Path
collectiveidea-delayed_job-1.8.1 generators/delayed_job/delayed_job_generator.rb
collectiveidea-delayed_job-1.8.2 generators/delayed_job/delayed_job_generator.rb
blue_light_special-0.2.1 test/rails_root/vendor/gems/delayed_job-1.8.4/generators/delayed_job/delayed_job_generator.rb
efficiency20-delayed_job-1.8.51 generators/delayed_job/delayed_job_generator.rb
delayed_job-1.8.5 generators/delayed_job/delayed_job_generator.rb
mathie-delayed_job-1.8.4 generators/delayed_job/delayed_job_generator.rb
xspond-delayed_job-1.8.5 generators/delayed_job/delayed_job_generator.rb
moneypools-delayed_job-1.8.4 generators/delayed_job/delayed_job_generator.rb
koombea-delayed_job-1.8.5 generators/delayed_job/delayed_job_generator.rb
base_rails_app-0.0.1 lib/vendor/plugins/delayed_job/generators/delayed_job/delayed_job_generator.rb
delayed_job-1.8.4 generators/delayed_job/delayed_job_generator.rb
delayed_job-1.8.3 generators/delayed_job/delayed_job_generator.rb
delayed_job-1.8.2 generators/delayed_job/delayed_job_generator.rb
delayed_job-1.8.1 generators/delayed_job/delayed_job_generator.rb