Sha256: 8dcf9cb710507f958096833e18ddb00028ed6a395d50128015e39e3162147a8a

Contents?: true

Size: 378 Bytes

Versions: 15

Compression:

Stored size: 378 Bytes

Contents

require 'rails/generators/base'
require 'delayed/compatibility'

class DelayedJobGenerator < Rails::Generators::Base
  source_paths << File.join(File.dirname(__FILE__), 'templates')

  def create_executable_file
    template 'script', "#{Delayed::Compatibility.executable_prefix}/delayed_job"
    chmod "#{Delayed::Compatibility.executable_prefix}/delayed_job", 0o755
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
delayed_job-4.1.13 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.12 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.12.rc1 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.11 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.10 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.9 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.8 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.8.beta1 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.7 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.7.beta1 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.6 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.6.beta1 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.5 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.4 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.3 lib/generators/delayed_job/delayed_job_generator.rb