module RailwayIpc

Constants

HandlerManifest
VERSION

Public Class Methods

bunny_connection() click to toggle source
# File lib/railway_ipc.rb, line 49
def self.bunny_connection
  @bunny_connection ||= RailwayIpc::Rabbitmq::Adapter.new(
    exchange_name: 'default',
    options: { automatic_recovery: true }
  ).connection
end
configure(log_device=$stdout, level=::Logger::INFO, log_formatter=nil) click to toggle source
# File lib/railway_ipc.rb, line 41
def self.configure(log_device=$stdout, level=::Logger::INFO, log_formatter=nil)
  @logger = RailwayIpc::Logger.new(log_device, level, log_formatter)
end
logger() click to toggle source
# File lib/railway_ipc.rb, line 45
def self.logger
  @logger || RailwayIpc::Logger.new($stdout)
end
spawn() click to toggle source
# File lib/railway_ipc.rb, line 37
def self.spawn
  Sneakers::Spawner.spawn
end
start() click to toggle source
# File lib/railway_ipc.rb, line 33
def self.start
  Rake::Task['sneakers:run'].invoke
end