module Superbolt

Subclass me to get an easy MessageHandler to plug into your router, no boilerplate. Just focus on the perform method that you need to build.

Constants

VERSION

Attributes

app_name[RW]
env[W]
error_notifier[W]
file_matcher[W]

Public Class Methods

config() click to toggle source
# File lib/superbolt/facade.rb, line 12
def self.config
  @config ||= Config.new
end
config=(options) click to toggle source
# File lib/superbolt/facade.rb, line 3
def self.config=(options)
  @config = Config.new({
    env: env,
    app_name: app_name,
    error_notifier: error_notifier,
    file_matcher: file_matcher
  }.merge(options))
end
env() click to toggle source
# File lib/superbolt/facade.rb, line 25
def self.env
  @env || 'development'
end
error_notifier() click to toggle source
# File lib/superbolt/facade.rb, line 33
def self.error_notifier
  @error_notifier || :none
end
file_matcher() click to toggle source
# File lib/superbolt/facade.rb, line 29
def self.file_matcher
  @file_matcher || /_file$/
end
message(args={}) click to toggle source
# File lib/superbolt/facade.rb, line 37
def self.message(args={})
  Superbolt::Messenger.new(args)
end
queue(name) click to toggle source
# File lib/superbolt/facade.rb, line 16
def self.queue(name)
  Superbolt::Queue.new(name, config)
end