canzea 0.1.64 → 0.1.66
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 +4 -4
- data/lib/canzea/version.rb +1 -1
- data/lib/canzea.rb +1 -1
- data/lib/commands/prepare-plan.rb +2 -2
- data/lib/trace-component.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c55b48b422e63bdbe2477343cf2983c6a1e7340
|
4
|
+
data.tar.gz: 2b8cad176aaff20ee7ed6a064b9cfff85dee493b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dc30a8465da236073d20241e5235c4da0b4b0004fa0263910786b8c3be17c2cfc1f70f5dce2650fd5208dbf50bf74a41c684165f58efecfd54f30173549a7e9
|
7
|
+
data.tar.gz: 007eaefe047ebdb10b155c3e8502857de882698405d06ff4b842751c00646fba5e03a492c7e44ad0bbf9e20f38422e7dd12037d8a3935ca690268eb2c406b1a7
|
data/lib/canzea/version.rb
CHANGED
data/lib/canzea.rb
CHANGED
@@ -125,7 +125,7 @@ module Canzea
|
|
125
125
|
end
|
126
126
|
if (util == "prepare-plan")
|
127
127
|
ac = PreparePlan.new
|
128
|
-
ac.do opts[:blueprint], opts[:segment], opts[:step], test, opts[:privateKey]
|
128
|
+
ac.do opts[:blueprint], opts[:segment], opts[:step], test, opts[:privateKey], opts[:serverBase], opts[:serverNumber]
|
129
129
|
end
|
130
130
|
if (util == "apply-config")
|
131
131
|
gitRoot = opts.fetch(:gitRoot, Canzea::config[:git_repo])
|
@@ -10,7 +10,7 @@ class PreparePlan
|
|
10
10
|
end
|
11
11
|
|
12
12
|
# Read the blueprint instructions and prepare plan for a particular segment
|
13
|
-
def do (blueprint, segment, step, test, privateKey)
|
13
|
+
def do (blueprint, segment, step, test, privateKey, serverBase, serverNumber)
|
14
14
|
planStep = PlanStep.new
|
15
15
|
|
16
16
|
puts "Processing configure.json for #{segment} in #{blueprint} from #{@basePath}"
|
@@ -30,7 +30,7 @@ class PreparePlan
|
|
30
30
|
else
|
31
31
|
puts "[#{index}] #{item}"
|
32
32
|
if (test == false)
|
33
|
-
publicIp = File.read("#{Canzea::config[:pwd]}/vps
|
33
|
+
publicIp = File.read("#{Canzea::config[:pwd]}/vps-#{serverBase}-#{serverNumber}.json")
|
34
34
|
RemoteRun.new.do publicIp, privateKey, parts[1], parts[2]
|
35
35
|
# Keep track of what we have done; parsing the response and looking at the JSON
|
36
36
|
end
|
data/lib/trace-component.rb
CHANGED
@@ -92,9 +92,14 @@ class Worker
|
|
92
92
|
|
93
93
|
output = log_w.string
|
94
94
|
|
95
|
-
|
96
|
-
|
95
|
+
begin
|
96
|
+
output.split(/\n/).each do | line |
|
97
|
+
puts "-- #{line}"
|
98
|
+
end
|
99
|
+
rescue => exception
|
100
|
+
puts "-- WARNING : Unable to parse output, exception: #{exception.to_s}"
|
97
101
|
end
|
102
|
+
|
98
103
|
puts "-- Exit Status = #{exit_status}"
|
99
104
|
|
100
105
|
log.info("STDOUT #{output}")
|
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.
|
4
|
+
version: 0.1.66
|
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-
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|