Module: Nanite::AMQPHelper
- Included in:
- Agent, Mapper, MapperProxy
- Defined in:
- lib/nanite/amqp.rb
Instance Method Summary collapse
Instance Method Details
#start_amqp(options) ⇒ Object
41 42 43 44 45 |
# File 'lib/nanite/amqp.rb', line 41 def start_amqp() connection = AMQP.connect(:user => [:user], :pass => [:pass], :vhost => [:vhost], :host => [:host], :port => ([:port] || ::AMQP::PORT).to_i, :insist => [:insist] || false) MQ.new(connection) end |