ruby-amqp / hutch

A system for processing messages from RabbitMQ.
https://gocardless.com/blog/hutch-inter-service-communication-with-rabbitmq/
MIT License
865 stars 138 forks source link

Hutch URI supported? #350

Closed jnarowski closed 4 years ago

jnarowski commented 4 years ago

I see references to URI in the code, but it's not supported at the command line? I have RABBITMQ_URL set as an env var and would be nice to not have to break it up into several ENV vars needed for username, password etc.

michaelklishin commented 4 years ago

Hutch uses a config file (or Hutch::Config modifications) which has a uri property used when connection parameters are computed.

Environment variables are not really used by Hutch and only sparingly in Bunny (e.g. BUNNY_LOG_LEVEL).

jnarowski commented 4 years ago

Would you be open to a pull request that adds URI as a possible command line option?

michaelklishin commented 4 years ago

Sure. Thank you for considering a contribution!