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 +4 -4
- data/bin/consul-cli +1 -0
- data/lib/diplomatic_bag/datacenters.rb +2 -0
- data/lib/diplomatic_bag/info.rb +4 -2
- data/lib/diplomatic_bag/nodes.rb +2 -0
- data/lib/diplomatic_bag/service.rb +2 -0
- data/lib/diplomatic_bag/services.rb +2 -0
- data/lib/diplomatic_bag.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09e948360a1c34b43a7c22b832a38324164ca4112ec47e66541e7a81b950b6b5'
|
4
|
+
data.tar.gz: 5dd49cefbff73b3ba2f6ab377e3640cc1c79b232d4c0fbb1f1593af71df59789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9aed038af7957a5704d37affcd9bea83cecfd8948585ec3cb7e055d5953078810f1fb0b3a7bacc33a8ea5a7c9029fa6e470d183ea566b12b6b0f2fd01c1267e
|
7
|
+
data.tar.gz: ebbb24102fc4e8e12685a963cd7af562d47753d6c5ae5c71f3ce90ba626f27fe71e015810b48352a1939dbf7c7eb20f67527102ce186cbe2da72103b4b89441f
|
data/bin/consul-cli
CHANGED
data/lib/diplomatic_bag/info.rb
CHANGED
@@ -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
|
data/lib/diplomatic_bag/nodes.rb
CHANGED
data/lib/diplomatic_bag.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
26
|
+
version: 2.3.0
|
27
27
|
description: Toolbox for Consul
|
28
28
|
email:
|
29
29
|
- n.benoit@criteo.com
|