Uses the correct env vars

This commit is contained in:
Brusk Awat 2022-12-01 21:20:56 +03:00
parent dcacb30e75
commit c12b9da7b8
Signed by: broosk1993
GPG Key ID: 5D20F7E02649F74E
3 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,7 @@
PATH
remote: .
specs:
rabbit_carrots (0.1.5)
rabbit_carrots (0.1.7)
activesupport (>= 6.0.0)
bunny (>= 2.19.0)
connection_pool (~> 2.3.0)

View File

@ -7,12 +7,14 @@ module RabbitCarrots
def initialize
@connection = Bunny.new(
host: Configuration.rabbitmq_host,
port: Configuration.rabbitmq_port,
user: Configuration.rabbitmq_user,
password: Configuration.rabbitmq_password,
vhost: Configuration.rabbitmq_vhost
host: self.configuration.rabbitmq_host,
port: self.configuration.rabbitmq_port,
user: self.configuration.rabbitmq_user,
password: self.configuration.rabbitmq_password,
vhost: self.configuration.rabbitmq_vhost
)
puts "Putting Config: #{self.configuration}"
@connection.start
end

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module RabbitCarrots
VERSION = "0.1.6"
VERSION = "0.1.7"
end