Sha256: 087bf782588fb9012c14b1c0578fc9de7b630bb9ade675a84a004cc02c6663bf

Contents?: true

Size: 400 Bytes

Versions: 9

Compression:

Stored size: 400 Bytes

Contents

require 'rails/generators'

module DelayedJobMaster
  class ConfigGenerator < Rails::Generators::Base
    source_root File.join(File.dirname(__FILE__), 'templates')

    def create_script_file
      template 'script', 'bin/delayed_job_master'
      chmod 'bin/delayed_job_master', 0o755
    end

    def create_config_file
      template 'config.rb', 'config/delayed_job_master.rb'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
delayed_job_master-3.1.0 lib/generators/delayed_job_master/config_generator.rb
delayed_job_master-3.0.1 lib/generators/delayed_job_master/config_generator.rb
delayed_job_master-3.0.0 lib/generators/delayed_job_master/config_generator.rb
delayed_job_master-2.0.3 lib/generators/delayed_job_master/config_generator.rb
delayed_job_master-2.0.2 lib/generators/delayed_job_master/config_generator.rb
delayed_job_master-2.0.1 lib/generators/delayed_job_master/config_generator.rb
delayed_job_master-2.0.0 lib/generators/delayed_job_master/config_generator.rb
delayed_job_master-1.2.0 lib/generators/delayed_job_master/config_generator.rb
delayed_job_master-1.1.0 lib/generators/delayed_job_master/config_generator.rb