Sha256: 6bb688b5482b910aa5a5147602428ec340fcb5d98ae935c4dfbaad7efc28593e

Contents?: true

Size: 377 Bytes

Versions: 8

Compression:

Stored size: 377 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", 0755
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
delayed_job-4.1.2 lib/generators/delayed_job/delayed_job_generator.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/delayed_job-4.1.1/lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.1 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.1.0 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job_tgmerritt-4.0.7 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.0.6 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.0.5 lib/generators/delayed_job/delayed_job_generator.rb
delayed_job-4.0.4 lib/generators/delayed_job/delayed_job_generator.rb