Sha256: a43f6b2c7100f06d27b6aa6ee50963abcf5a37cbcdcc50d6a30b74cb71d428fa

Contents?: true

Size: 268 Bytes

Versions: 8

Compression:

Stored size: 268 Bytes

Contents

require 'rails/generators'

class DelayedJobGenerator < Rails::Generators::Base

  self.source_paths << File.join(File.dirname(__FILE__), 'templates')

  def create_script_file
    template 'script', 'script/delayed_job'
    chmod 'script/delayed_job', 0755
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
delayed_job-4.0.0.beta1 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-3.0.5 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-3.0.4 lib/generators/delayed_job/delayed_job_generator.rb
drewda_delayed_job-3.0.3 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-3.0.3 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-3.0.2 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-3.0.1 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-3.0.0 lib/generators/delayed_job/delayed_job_generator.rb