Class: DelayedJobGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/delayed_job/delayed_job_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_executable_fileObject



7
8
9
10
# File 'lib/generators/delayed_job/delayed_job_generator.rb', line 7

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