include rabbitmq
- boxen
- homebrew
- stdlib
Once installed, you can access the following variables in your environment, projects, etc:
- BOXEN_RABBITMQ_PORT: the configured rabbitmq port
- BOXEN_RABBITMQ_URL: the URL for rabbitmq, including localhost & port
- BOXEN_RABBITMQ_MGMT_PORT: the configured rabbitmq management port
- BOXEN_RABBITMQ_MGMT_URL: the URL for rabbitmq management, including localhost & port
$rabbitmq = RabbitMQ.new(:host => '127.0.0.1', :port => ENV['BOXEN_RABBITMQ_PORT'] || '5672')