coe-utils 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/coe/utils.rb +9 -3
- data/lib/coe/utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 646e06265fdea57656a7ac396bb4f0d66df5240c
|
4
|
+
data.tar.gz: 0a5c5d3620f3e019ac590f73c9f0c74a49c815da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b84b1f8eff235b5538a0521774d9b0d78b44da4e45ecb752f64f3f101f0102d4de3dd783cdd42c82375ce0d30a54809888c4de677f81b674a04cd11c7a2e34
|
7
|
+
data.tar.gz: 9a803875590bfa451c89b9f1e80f6850eb5dfd33648fb92975413707c025de2bc4ada0685a98d3c50ad70fe9a3c772a269eb64ff2d146b3d5846eca57de6dc31
|
data/lib/coe/utils.rb
CHANGED
@@ -3,8 +3,14 @@ require "coe/utils/version"
|
|
3
3
|
module Coe
|
4
4
|
module Utils
|
5
5
|
# Your code goes here...
|
6
|
-
def
|
7
|
-
|
8
|
-
|
6
|
+
def load_conf_from_data_bag(data_bag_name, secret="")
|
7
|
+
client = Hash.new
|
8
|
+
clients_db = data_bag(data_bag_name)
|
9
|
+
clients_db.each do |clients|
|
10
|
+
temp = data_bag_item(data_bag_name, clients, secret).to_hash
|
11
|
+
client[temp["id"]] = temp
|
12
|
+
end
|
13
|
+
return client
|
14
|
+
end
|
9
15
|
end
|
10
16
|
end
|
data/lib/coe/utils/version.rb
CHANGED