Class: Clamour::Configuration

Inherits:
Object
  • Object
show all
Extended by:
ActiveSupport::Autoload
Includes:
Base
Defined in:
lib/clamour/configuration.rb

Defined Under Namespace

Modules: Base Classes: RabbitMqConfiguration

Instance Method Summary collapse

Methods included from Base

#eql?, #hash

Instance Method Details

#default_enable_connectionBoolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/clamour/configuration.rb', line 24

def default_enable_connection
  !(defined?(Rails) && Rails.env.test?)
end

#default_loggerLogger

Returns:

  • (Logger)


19
20
21
# File 'lib/clamour/configuration.rb', line 19

def default_logger
  MonoLogger.new(STDERR)
end

#enable_connection?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/clamour/configuration.rb', line 29

def enable_connection?
  enable_connection
end