Class: CloudpiRuntime::RabbitMQClient

Inherits:
Object
  • Object
show all
Includes:
CloudpiRuntime
Defined in:
lib/client/RabbitMQClient.rb,
lib/client/RabbitMQClient.rb

Instance Method Summary collapse

Methods included from CloudpiRuntime

#credential_map

Instance Method Details

#create_from_svc(hostname) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/client/RabbitMQClient.rb', line 14

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