dtk_crd_parser 0.0.136 → 0.0.137
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crd_parser/component.rb +1 -1
- data/lib/crd_parser/component/attribute.rb +2 -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: 2ba67c5acd6d5eddb9b1e15e9c031f8fdfe5c8cd
|
4
|
+
data.tar.gz: c04b95b611e383db936aad1ac7dd4e3054519ea5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aeefd8964c77a20cbd891a680439e5fff5ef1f8617a41f295509d99bf856cb48265b1ee6f9399455a60acacb68fd102aae0aeec9c7b7040b068d27c7992aa0d
|
7
|
+
data.tar.gz: 43a88903c2d8fba87fc23ff0cc576bb6d4b00c12deb0afa36b6d97856dc2ba2838484b0b5f949acc70c453b77539dc6b198654c77ef421b98549126b2988bec0
|
data/lib/crd_parser/component.rb
CHANGED
@@ -24,8 +24,8 @@ module DTK::CrdParser
|
|
24
24
|
Logger.new('/proc/1/fd/1').info("DEBUGGING: #{component_name}, #{component_attributes}")
|
25
25
|
attributes = []
|
26
26
|
if component_attributes
|
27
|
+
Logger.new('/proc/1/fd/1').info("DEBUGGING To hash: #{component_attributes.to_hash}")
|
27
28
|
component_attributes.to_hash.each do |attribute_name, attribute_value|
|
28
|
-
Logger.new('/proc/1/fd/1').info("DEBUGGING To hash: #{component_attributes.to_hash}")
|
29
29
|
attributes.push Attribute.create_from_kube(attribute_name, attribute_value)
|
30
30
|
end
|
31
31
|
end
|
@@ -6,12 +6,13 @@ module DTK::CrdParser
|
|
6
6
|
attr_reader :name, :value
|
7
7
|
|
8
8
|
def initialize(name, value)
|
9
|
+
Logger.new('/proc/1/fd/1').info("DEBUGGING in new: #{name}, #{value}")
|
9
10
|
@name = fail_if_nil(name, 'Attribute.name')
|
10
11
|
@value = fail_if_nil(value, 'Attribute.value')
|
11
12
|
end
|
12
13
|
|
13
14
|
def self.create_from_kube(attribute_name, attribute_value)
|
14
|
-
Logger.new('/proc/1/fd/1').info("DEBUGGING: #{attribute_name}, #{attribute_value}")
|
15
|
+
Logger.new('/proc/1/fd/1').info("DEBUGGING above new: #{attribute_name}, #{attribute_value}")
|
15
16
|
Attribute.new(attribute_name, attribute_value)
|
16
17
|
end
|
17
18
|
|