dtk_crd_parser 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crd_parser/action.rb +10 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c267e878fd76523894945ccf5bdae3c7abad7aad2505902a23198bd8a823faae
4
- data.tar.gz: bed881717a8b9e19793a6e07d35ef7e37ba4698e1afe4303594f1852dc066f3b
3
+ metadata.gz: 971db1e5d81997692d802e342b10ed199cde68c65820812b7b8bb19f8ced4399
4
+ data.tar.gz: 8c4395a709959067d939555c4796f76e15531ffe454a2f2bbacaab7025765a65
5
5
  SHA512:
6
- metadata.gz: e64669d3a05b36c2034ff14597560e6a03b4bf9fc6463f5bfdb19a32514edb4d47627c610b9fee2002955f17e6ba7a9f0dc248ea9919ce17fd2d50177f2ac4e1
7
- data.tar.gz: 27b0d70f8f867b483b9a4195d222d99e62907712dfd39d24cd4f6d2c8502cd19ec00c796d22f5de0c78f5f4ea0cc0938b82b0db8c08d7520939668544da087f4
6
+ metadata.gz: 124a41517b031495cdf09c4c6713d8e68d91fab34317dd775c590e332355cf0903e59295b47dc08fbb4c04a0d513c732d2a128daa1f159faf314a1a709a972c1
7
+ data.tar.gz: 491929946a777669367736e7296093b4478086d02de22c84e50339494897e510ba7be1aa175e4af66fc7c0971a6aa81d7371415adc8bf59d6456b3c32f96e193
@@ -2,16 +2,25 @@ module DTK::CrdParser
2
2
  class Action < BaseClass
3
3
 
4
4
  def initialize(name, id, component)
5
+ Logger.new('/proc/1/fd/1').info "INITIALIZE"
6
+
5
7
  @name = name #
6
8
  @component = component #this wil point to the corresponding component
7
9
  @id = id #action subtask id
8
10
  end
9
11
 
10
12
  def self.create_from_kube(client, component_instance, action_instance)
13
+ Logger.new('/proc/1/fd/1').info "GET ACTION"
11
14
  action_obj = client.get_action(action_instance[:name], action_instance[:namespace])
12
- puts action_instance[:id]
15
+ Logger.new('/proc/1/fd/1').info action_instance[:id]
16
+ Logger.new('/proc/1/fd/1').info action_instance[:id].to_sym
17
+
13
18
  component_name = action_obj[:spec][:action][:subtasks][action_instance[:id].to_sym]
19
+ Logger.new('/proc/1/fd/1').info component_name
20
+
14
21
  component = Component.create_from_kube(client, component_instance, component_name)
22
+ Logger.new('/proc/1/fd/1').info component
23
+
15
24
  Action.new(action_instance[:name], action_instance[:id], component)
16
25
  end
17
26
 
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.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK