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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 298a280e464ce59bd83191fc9be164f35ff52a54
4
- data.tar.gz: 00b3ef064f6021dafe46639f7e2c494886997fef
3
+ metadata.gz: 2c55b48b422e63bdbe2477343cf2983c6a1e7340
4
+ data.tar.gz: 2b8cad176aaff20ee7ed6a064b9cfff85dee493b
5
5
  SHA512:
6
- metadata.gz: 1af5ce815b66ce552cfca78f47e862fa309de179578c27e796f867ce985f33c647c5cc066a4c2fde420dbf4f564128163084e21b0f7dd6a3f45b2580db7a8138
7
- data.tar.gz: ae5cc9f013110fd49d11dab732032ca08adf36ce1b0ce846013ec7a07d623569c462c1d2cc9e59a19e487c65b3924211797b1e78e3d4934fa904e2fa504766fe
6
+ metadata.gz: 5dc30a8465da236073d20241e5235c4da0b4b0004fa0263910786b8c3be17c2cfc1f70f5dce2650fd5208dbf50bf74a41c684165f58efecfd54f30173549a7e9
7
+ data.tar.gz: 007eaefe047ebdb10b155c3e8502857de882698405d06ff4b842751c00646fba5e03a492c7e44ad0bbf9e20f38422e7dd12037d8a3935ca690268eb2c406b1a7
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.64"
2
+ VERSION = "0.1.66"
3
3
  end
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-DevOps-1.json")
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
@@ -92,9 +92,14 @@ class Worker
92
92
 
93
93
  output = log_w.string
94
94
 
95
- output.split(/\n/).each do | line |
96
- puts "-- #{line}"
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.64
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-01-03 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler