defaults: &defaults
  port: 5672
  vhost: /
  user: publishing_api
  pass: publishing_api
  recover_from_connection_close: true

development:
  <<: *defaults
  host: localhost
  exchange: published_documents

test:
  <<: *defaults
  host: localhost
  exchange: published_documents_test

production:
  <<: *defaults
  hosts:
    <% hosts = ENV['RABBITMQ_HOSTS'] || 'localhost' %>
    <% hosts.split(",").each do |host| %>
    - <%= host %>
    <% end %>
  pass: <%= ENV['RABBITMQ_PASSWORD'] %>
  exchange: published_documents

defaults: &defaults
  port: 5672
  vhost: /
  user: publishing_api
  pass: publishing_api
  exchange: published_documents
  recover_from_connection_close: true

development:
  <<: *defaults
  host: localhost

test:
  <<: *defaults
  host: localhost
  exchange: published_documents_test

production:
  <<: *defaults
  hosts:
    <% hosts = ENV['RABBITMQ_HOSTS'] || 'localhost' %>
    <% hosts.split(",").each do |host| %>
    - <%= host %>
    <% end %>
  pass: <%= ENV['RABBITMQ_PASSWORD'] %>

Handle the RabbitMQ exchange as a default
Handle the RabbitMQ exchange as a default
