Class: SidekiqBackgrounderInitializerGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_initializer_fileObject

:logger, :use_honeybadger, :queue, :retry, :backtrace, :pool, :raise_exception



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/sidekiq_backgrounder_initializer_generator.rb', line 3

def create_initializer_file
  create_file "config/initializers/sidekiq_backgrounder.rb", <<~RUBY
    SidekiqBackgrounder.configure do |config|
      config.logger = Rails.logger
      config.queue = "default"
      config.retry = false
      config.backtrace = true
      config.use_honeybadger = false
      # config.pool = "some_pool_name"
    end
  RUBY
end