Class: CPRuntime::RabbitMQClient

Inherits:
Object
  • Object
show all
Includes:
CPRuntime
Defined in:
lib/cpruntime/RabbitMQClient.rb,
lib/cpruntime/RabbitMQClient.rb

Instance Method Summary collapse

Methods included from CPRuntime

#credential_map

Instance Method Details

#create_from_svc(hostname) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/cpruntime/RabbitMQClient.rb', line 12

def create_from_svc(hostname)
  m = credential_map("rabbit")
  c = m[hostname];
  p c
  client = Bunny.new(:host => c.host,:port => c.port,:pass => c.password,:user=>c.username,:vhost=>c.vhost)
  return client
end