Class: LaGear::SneakersConfigurer

Inherits:
Object
  • Object
show all
Defined in:
lib/la_gear/sneakers_configurer.rb

Class Method Summary collapse

Class Method Details

.configure_bi_amqp_endpoints(rx_uri_str, tx_uri_str) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/la_gear/sneakers_configurer.rb', line 4

def configure_bi_amqp_endpoints(rx_uri_str, tx_uri_str)
  parser = UriParser.new(rx_uri_str)
  ::Sneakers.configure(
    amqp: parser.amqp,
    vhost: parser.vhost
  )
  parser = UriParser.new(tx_uri_str)
  ::Sneakers.configure(
    amqp_publish: parser.amqp,
    vhost_publish: parser.vhost
  )
end