dtk_crd_parser 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 505ba3ebe0d7ef11e0db8b7de82d4517781ba74bcac3a25f2da0cd2a77a343da
4
- data.tar.gz: cab35dcd25589d822fe06c10927b1687366116255e04365cb2783521d6d42e35
3
+ metadata.gz: 31302b10ec8f632b79a2bf34ac28b26909abb03b43fe218686bfb5fbf68124d1
4
+ data.tar.gz: d87bddb62db4fb064ebe5e48f5e67273b1a1a1f38e9e89035d2e9b9557663b0e
5
5
  SHA512:
6
- metadata.gz: fec66cb8ea4ebe45a4dd76cecd8c48e7154d2f165522423ecf43a175beb9ebe4e38913967c500bf28e14cf7e20acc6f68296206e3f97fccd40150167aed39e87
7
- data.tar.gz: 17637b3fb82aa7d3402d4fb805202449ba52450ea3273a5e0ccc4ba73feb712e8970262fc5a4c0a2f2f2f6eb5592818229a8390e6b7a522d21ee3f3111d51ff3
6
+ metadata.gz: 9a3107822c8596291237622e41492d6be9d9f896f547cde93d1bf6027ee58cc36add8d6a02749e3af5653ad996a5024b489c15049dfd272cca660d6f9548f2b4
7
+ data.tar.gz: d1f8cbb443d0603e2963438a16b1df8c07a13d56838fcae73c1093040d5439fcb0324e6d5df2f1a13ff994dd038c5322af2817ff41268a622dbb43b330180286
@@ -33,8 +33,7 @@ module DTK::CrdParser
33
33
  # i.e ec2::node[ng-1]/(node-utility::ssh-access[ubuntu])
34
34
  nodeName, actionComponent = actionComponent.match(/(.*)\/(.*)/).captures if isOnSpecificNode(actionComponent)
35
35
  compModule, compName, attributeName, action = actionComponent.match(regex).captures if actionComponent
36
- action = !action.empty? ? action.to_sym : :create
37
-
36
+ action = (!action || !action.empty?) ? action.to_sym : :create
38
37
  if(compModule.nil? || compName.nil? || attributeName.nil?)
39
38
  raise `Could not resolve component module, name or attribute name for component: #{actionComponent}`
40
39
  end
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK