Class: SidekiqBackgrounderInitializerGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SidekiqBackgrounderInitializerGenerator
- Defined in:
- lib/generators/sidekiq_backgrounder_initializer_generator.rb
Instance Method Summary collapse
-
#create_initializer_file ⇒ Object
:logger, :use_honeybadger, :queue, :retry, :backtrace, :pool, :raise_exception.
Instance Method Details
#create_initializer_file ⇒ Object
: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 |