dtk_crd_parser 0.0.149 → 0.0.150

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: 9d8b8d32f7d3310abb2f0c2d09d6b5868645824ea686dd589864b422869c320d
4
- data.tar.gz: f34131fa3ce4eb622bfe1f22f69f75e84d9194107c06ee7a69002cf4b378f0a9
3
+ metadata.gz: c00944d697e27613d3e172b7ee87258f0eee8a818c21ca8724cccce97a1d836c
4
+ data.tar.gz: b7266ea3fa74e874a7d3f917c05b8d96fd00319a010c10631135578cec1117e2
5
5
  SHA512:
6
- metadata.gz: eeebc3a417aa9f0b8412019edfcc53a2073cebcb66c672b5df1fa0cb01215c2f451133f5b662926fd6bf1103472ed93d9e7b8c38666e59739a5f592bd995e7cd
7
- data.tar.gz: 7228ce4491b593825a3b40909db02b68bcf7aa055c593b247121504b1561b8725b3db9b8762b04b7e972a6849b415d173462f67a964a0a59f3ca801bb3d52972
6
+ metadata.gz: f2efbf3c6bcf86cd98fbc30e09dbb96ee8b16d459e291954be145fb9fe7972a094f68f8ae460fc05448980d609eabea1b0c22071a632759b78eda07770729e07
7
+ data.tar.gz: a3a279f7ed4f9a3cd0ec20ff5eeae3fa3f0b28dd671e81192d92825b5b2c4ecc1fed77e4a96ce61aee5cfe540bf8ce7c0308118b46418acc2ba767924145b45f
@@ -8,15 +8,12 @@ module DTK::CrdParser
8
8
  end
9
9
 
10
10
  def self.destructureActionComponent(actionComponent)
11
- Logger.new('/proc/1/fd/1').info "ACTION COMPONENT (IN PARSER): #{actionComponent}"
12
-
13
11
  # regex to match component: module::name[attrName].action
14
12
  regex = /(.*)::(.*)\[(.*)\].?(.*)/
15
13
  # if component on node group node, get full name first
16
14
  # i.e ec2::node[ng-1]/(node-utility::ssh-access[ubuntu])
17
15
  nodeName, actionComponent = actionComponent.match(/(.*)\/(.*)/).captures if isOnSpecificNode(actionComponent)
18
16
  compModule, compName, attributeName, action = actionComponent.match(regex).captures if actionComponent.match(regex)
19
- Logger.new('/proc/1/fd/1').info "ACTION (IN PARSER): #{action}"
20
17
  action = (action && !action.empty?) ? action.to_sym : nil
21
18
 
22
19
  if(compModule.nil? || compName.nil? || attributeName.nil?)
@@ -29,8 +29,12 @@ module DTK::CrdParser
29
29
 
30
30
  componentDefSpec = componentDef[:spec] || {}
31
31
  if destructured_component[:action] && componentDefSpec[:actions]
32
+ Logger.new('/proc/1/fd/1').info "actions: #{componentDefSpec[:actions]}"
33
+ Logger.new('/proc/1/fd/1').info "to sym: #{destructured_component[:action].to_sym}"
34
+
32
35
  componentDefAction = componentDefSpec[:actions][destructured_component[:action].to_sym]
33
36
  else
37
+ Logger.new('/proc/1/fd/1').info componentDefSpec[:actions]
34
38
  componentDefAction = componentDefSpec[:actions]
35
39
  end
36
40
  componentDefAttributes = []
@@ -44,7 +48,7 @@ module DTK::CrdParser
44
48
  namespace: namespace,
45
49
  resourceVersion: resourceVersion
46
50
  }
47
-
51
+
48
52
  ComponentDef.new(metadata, componentDefAction, componentDefAttributes)
49
53
  end
50
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk_crd_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.149
4
+ version: 0.0.150
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK