Module: MassTransit

Defined in:
lib/masstransit/serializer.rb,
lib/masstransit/bus.rb,
lib/masstransit/urn.rb,
lib/masstransit/config.rb,
lib/masstransit/message.rb,
lib/masstransit/envelope.rb,
lib/masstransit/transports/amqp.rb

Overview

look at the source and hack! whoot whoot

Defined Under Namespace

Classes: Amqp, Bus, Config, Envelope, Message, Serializer, Urn

Class Method Summary collapse

Class Method Details

.load_config(file_name) ⇒ Object

Sample Config File


server : localhost port : 5672 vdir : / user : guest password : guest insist: true def load_config(file_name)



40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/masstransit/config.rb', line 40

def MassTransit.load_config(file_name)
  o = YAML::load_file(file_name)
  cfg = Config.new
  
  cfg.server = o['server']
  cfg.port = o['port']
  cfg.vdir = o['vdir']
  cfg.user = o['user']
  cfg.password = o['password']
  cfg.insist = o['insist']
  cfg.queue = o['queue']
  
  return cfg
end