lib/jackhammer/configuration.rb in jackhammer-1.3.7 vs lib/jackhammer/configuration.rb in jackhammer-1.4.0
- old
+ new
@@ -1,16 +1,18 @@
module Jackhammer
class Configuration
attr_accessor(
:app_name,
+ :client_middleware,
:connection_options,
:connection_url,
:environment,
:exception_adapter,
:logger,
:publish_options,
:server,
+ :server_middleware,
:yaml_config
)
def initialize
@connection_options = {}
@@ -18,9 +20,11 @@
@environment = ENV['RACK_ENV'] || :development
@exception_adapter = proc { |e| fail e }
@logger = Logger.new IO::NULL
@publish_options = { mandatory: true, persistent: true }
@yaml_config = './config/jackhammer.yml'
+ @client_middleware = MiddlewareCollection.new
+ @server_middleware = MiddlewareCollection.new
end
def self.instance
@instance ||= new
end