Sha256: 9f57e9b0fc1fae86cd9013f65b66dc9fd016c5f2eac4321d37d91ba181c42454

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 Bytes

Contents

AppfluxRuby::Bugflux.configure do |config|
  config.app_id = '<your-app-id>'
  config.ignored_environments = %w( test development )
end

if defined?(::Delayed)
  require 'appflux_ruby/delayed/plugin'
  require 'appflux_ruby/message_builders/delayed_job'

  Delayed::Worker.plugins << ::AppfluxRuby::Delayed::Plugin
end

if defined?(::Sidekiq)
  require 'appflux_ruby/sidekiq/error_handler'
  require 'appflux_ruby/message_builders/sidekiq'

  Sidekiq.configure_server do |config|
    config.server_middleware do |chain|
      chain.add(AppfluxRuby::Sidekiq::ErrorHandler)
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appflux_ruby-0.1.2 lib/generators/appflux_ruby/appflux.rb