diplomatic_bag 2.2.6 → 2.3.0

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: 49216666e492288c6544048389a84a038bcf5d6ba37c96c3cd25fdcd397ed103
4
- data.tar.gz: 7d593222e278db146ebece7a26efda9bcc21da136d0221a53be9f5e2d8079900
3
+ metadata.gz: '09e948360a1c34b43a7c22b832a38324164ca4112ec47e66541e7a81b950b6b5'
4
+ data.tar.gz: 5dd49cefbff73b3ba2f6ab377e3640cc1c79b232d4c0fbb1f1593af71df59789
5
5
  SHA512:
6
- metadata.gz: b8c8437d2bf76e93a0f051bb36998814e1311c2bd1780c396d37e6a8348e02041756d62bc3ed885ddd99ef38583d84755fc8d4f48e18ae126104ac2bbfefa788
7
- data.tar.gz: 8357b671a8cb7993f1443291916f289a10c461d0440761dffd7f915164346121d49173182ef9bbd4a7b4da5a0894e0d39105863baac27dbadc28ef3afba74332
6
+ metadata.gz: b9aed038af7957a5704d37affcd9bea83cecfd8948585ec3cb7e055d5953078810f1fb0b3a7bacc33a8ea5a7c9029fa6e470d183ea566b12b6b0f2fd01c1267e
7
+ data.tar.gz: ebbb24102fc4e8e12685a963cd7af562d47753d6c5ae5c71f3ce90ba626f27fe71e015810b48352a1939dbf7c7eb20f67527102ce186cbe2da72103b4b89441f
data/bin/consul-cli CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
  # rubocop:disable all
3
4
 
4
5
  require 'diplomatic_bag'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Usefull usage of Diplomat lib: Datacenter functions
2
4
  module DiplomaticBag
3
5
  def self.get_datacenters_list(dc, options = {})
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Usefull usage of Diplomat lib: Info functions
2
4
  module DiplomaticBag
3
- # rubocop:disable AbcSize
5
+ # rubocop:disable Metrics/AbcSize
4
6
  def self.consul_info(options = {})
5
7
  consul_self = Diplomat::Agent.self(options)
6
8
  puts 'Server: ' + consul_self['Config']['NodeName']
@@ -28,5 +30,5 @@ module DiplomaticBag
28
30
  end
29
31
  end
30
32
  end
31
- # rubocop:enable AbcSize
33
+ # rubocop:enable Metrics/AbcSize
32
34
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Usefull usage of Diplomat lib: Nodes functions
2
4
  module DiplomaticBag
3
5
  def self.get_duplicate_node_id(options = {})
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Usefull usage of Diplomat lib: Service functions
2
4
  module DiplomaticBag
3
5
  def self.get_service_info(service, options = {})
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Usefull usage of Diplomat lib: Services functions
2
4
  module DiplomaticBag
3
5
  def self.compute_service_name(s)
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'diplomat'
2
4
 
3
5
  # Usefull usage of Diplomat lib.
4
6
  module DiplomaticBag
5
7
  # Load all module files
6
- Dir[File.join(__dir__, 'diplomatic_bag', '*.rb')].each { |file| require file }
8
+ Dir[File.join(__dir__, 'diplomatic_bag', '*.rb')].sort.each { |file| require file }
7
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diplomatic_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Benoit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-14 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diplomat
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.6
19
+ version: 2.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.6
26
+ version: 2.3.0
27
27
  description: Toolbox for Consul
28
28
  email:
29
29
  - n.benoit@criteo.com