Class: CPRuntime::RabbitMQClient

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

Constant Summary

Constants included from CPRuntime

META_DATA_PATH

Instance Method Summary collapse

Methods included from CPRuntime

#credential_map, #getHosts, refreshDedicatedServiceJsonDoc, service_json_doc, service_json_doc=

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