canzea 0.1.135 → 0.1.136

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
  SHA1:
3
- metadata.gz: 4046de0c0cc60f961424e2405f03b7f8eb0eb71d
4
- data.tar.gz: 56171787dc34c53cea02ae90987c8127913fb40a
3
+ metadata.gz: a87f5f12079168ee940aac006305f0f237af35be
4
+ data.tar.gz: 44c94686f6043ac1dcfb9a5cbdd247b9d97f7303
5
5
  SHA512:
6
- metadata.gz: ee0eacf75b820c88c0e6348d9e440fa357f8eba1ee947ae18b25160aefaf3c9279d5c344d26e283b798c62a3ddfc3315dc347e2b4e5c99f54637da2a7a417ebe
7
- data.tar.gz: e5ac475d6cba855b00fb45c51846d74862fa77b754421cd6ded5eb0684e5713a0022ab085988ab1aa2f89adda96e22beeffd49ba46fd893c6e7f2b46edb6f427
6
+ metadata.gz: 73abb530fee2f01a4180036f1a6655d5d63c38539623d2ed32a4f4c755cfe5078df389c50b85f6adfabbfb4eecfa876fe72f83019ccb8e802a487bb21f4fa074
7
+ data.tar.gz: 004d951f709d384d4a8bb7fa7d830df19245c6a500070bd4a8f333f787a83d2423ca40784613f39cae315e2a56a5ee42b963f6986adaec59948a69e742384adb
data/.gitignore CHANGED
@@ -9,5 +9,5 @@
9
9
  /tmp/
10
10
  *.gem
11
11
  *.iml
12
- .idea
12
+ .idea/
13
13
  config.json
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.135"
2
+ VERSION = "0.1.136"
3
3
  end
@@ -38,6 +38,7 @@ class PreparePlan
38
38
 
39
39
  log segment['abbreviation']
40
40
 
41
+ first = true
41
42
  index = 1
42
43
  segment['image'].each { |item|
43
44
  if item.start_with?("step:")
@@ -45,7 +46,10 @@ class PreparePlan
45
46
 
46
47
  if (index < Integer(step))
47
48
  log "[#{index.to_s.rjust(2, "0")}] #{item} SKIPPING"
49
+ msg = { "message" => { "task" => "skip", "context" => { "step" => index } } }
50
+ puts msg.to_json
48
51
  else
52
+
49
53
  log "[#{index.to_s.rjust(2, "0")}] #{item}"
50
54
  publicIp = File.read("#{Canzea::config[:pwd]}/vps-#{serverBase}-#{serverNumber}.json")
51
55
  publicIp.strip!
@@ -59,6 +63,12 @@ class PreparePlan
59
63
  else
60
64
  RemoteRun.new.test publicIp, privateKey, parts[1], parts[2], index.to_s.rjust(2, "0")
61
65
  end
66
+
67
+ if first == true
68
+ # task is only relevant for the first invocation
69
+ task = nil
70
+ first = false
71
+ end
62
72
  end
63
73
  index = index + 1
64
74
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canzea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.135
4
+ version: 0.1.136
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canzea Technologies
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2017-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler