Module: Pwwka

Defined in:
lib/pwwka.rb,
lib/pwwka/logging.rb,
lib/pwwka/version.rb,
lib/pwwka/handling.rb,
lib/pwwka/receiver.rb,
lib/pwwka/transmitter.rb,
lib/pwwka/test_handler.rb,
lib/pwwka/configuration.rb,
lib/pwwka/error_handlers.rb,
lib/pwwka/message_queuer.rb,
lib/pwwka/publish_options.rb,
lib/pwwka/channel_connector.rb,
lib/pwwka/error_handlers/chain.rb,
lib/pwwka/error_handlers/crash.rb,
lib/pwwka/send_message_async_job.rb,
lib/pwwka/queue_resque_job_handler.rb,
lib/pwwka/error_handlers/nack_and_ignore.rb,
lib/pwwka/error_handlers/base_error_handler.rb,
lib/pwwka/error_handlers/nack_and_requeue_once.rb,
lib/pwwka/error_handlers/ignore_payload_format_errors.rb

Defined Under Namespace

Modules: ErrorHandlers, Handling, Logging Classes: ChannelConnector, Configuration, ConfigurationError, MessageQueuer, PublishOptions, QueueResqueJobHandler, Receiver, SendMessageAsyncJob, TestHandler, Transmitter

Constant Summary collapse

VERSION =
'0.20.0'

Class Method Summary collapse

Class Method Details

.configurationObject


8
9
10
# File 'lib/pwwka.rb', line 8

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:


4
5
6
# File 'lib/pwwka.rb', line 4

def configure
  yield(configuration)
end

.environmentObject


12
13
14
# File 'lib/pwwka.rb', line 12

def environment
  ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
end