dafiti-rabbit-hutch 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0716b05a1d350323cc43e104587a8c565ed65e6ec59f2f1a1a228a2adb08ac08
4
- data.tar.gz: bf9a32e804756e4b480e1fd17ff397d8160a5b859f1bd9c5e8619da03f6d41da
3
+ metadata.gz: 63c6d4e94a0e0a5845dccb924e3e2e967a6316900138da535d6b9bddec131ad8
4
+ data.tar.gz: 6578b2e11ceaaace28f6afbcac63f60f89da6d145937498754e3fd84949b0e2d
5
5
  SHA512:
6
- metadata.gz: cbd360cb0262c3cbfce774bed7cedc8dbb8a0764dec801d0d376b6b289db611154b9ab77fbaf50f4358684e92c5d44c1d8bf1a0585173ed49ff8ac6c18cafa33
7
- data.tar.gz: 94000bbe23f2e1d5044dbdbf1785374cc6b568532ca3a83c30d7c28b6198851df548dfc71eb3733dadadd578a49e83fb129652ad239278b8656bd9a1d8ade7e4
6
+ metadata.gz: b7289a4bebf46cc0a4338141df0cdd1185e05068042dd9554fb48ca35d6678f65af53fdf8d720c8db84449826eea7b84f574f16bd47313d903f937813c27b241
7
+ data.tar.gz: eed62bff745cf77b2ffa19806e562e4d1522acd54dc41148bd60b94cd49e28a3e09f29416a7f7458ec1c2075e4c8416a679e4355d61090024df165b9f03f0a0a
data/config.yaml CHANGED
@@ -13,3 +13,4 @@ rabbitmq:
13
13
  consumers_config:
14
14
  consumers:
15
15
  - name: console_consumer
16
+ enabled: true
data/lib/configurator.rb CHANGED
@@ -6,8 +6,8 @@ module RabbitHutch
6
6
  attr_accessor :config
7
7
 
8
8
  def initialize options
9
-
10
- file = options['config'] || (File.dirname(__FILE__) + '/../config.yaml')
9
+
10
+ file = options[2] || (File.dirname(__FILE__) + '/../config.yaml')
11
11
 
12
12
  puts "Using config from #{file}"
13
13
 
data/lib/rabbithutch.rb CHANGED
@@ -6,8 +6,8 @@ require_relative "consumers/log4r_consumer"
6
6
  require_relative "consumers/console_consumer"
7
7
  require_relative "worker"
8
8
 
9
- @config = RabbitHutch::Configurator.new({})
10
-
9
+ @config = RabbitHutch::Configurator.new(ARGV)
10
+
11
11
  puts "\tEnvironment Settings"
12
12
  @config.rabbitmq_hosts.each do |rabbitmq_host|
13
13
  puts "\tDisplay Name: #{rabbitmq_host["displayname"]}, host: #{rabbitmq_host["hostname"]}, username: #{rabbitmq_host["username"]}, enabled #{rabbitmq_host["enabled"]}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dafiti-rabbit-hutch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Bartolomeu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-26 00:00:00.000000000 Z
11
+ date: 2021-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amqp