canzea 0.1.44 → 0.1.45

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: 05d6974a2fb6cc4ca0b4641dcf397b3f00c81b95
4
- data.tar.gz: ea269c73bfc061de60b0377e5baad2e1bc5ccad8
3
+ metadata.gz: 51235be62c75ba7c85f92eb4822d9fce76fe8b8e
4
+ data.tar.gz: a661129eba3458fb9625d1e1427fc773dd04db40
5
5
  SHA512:
6
- metadata.gz: 8287676fc4d1e7ed1f6421b599f306a7165e5b37a5278e49ffc0424e4065f7c9a56214507b7511aa98dc7456eca9fe674df3c2a6d5049a287b4b47b57438a58c
7
- data.tar.gz: b407b5200c788117a2d20d87175bc9e35dcd020e9393ad2b0b9d8146111ad90cc38f5d9631e6132c0106e32906494ae0f466ad35d74b6c4553ab6f791cbe6088
6
+ metadata.gz: 9ad9e18a247f4294d2e1209cccc30800b4d24b30e398ef8402d4040c86680c34d849ab959a25f954759e17bef93c7d7502f9a8d35feb0b734e69f52ffb6bc37a
7
+ data.tar.gz: 77f4710b57938bef885a58d75c723a069a9f41b8ef080e12ee282aa694c2b80a37db2c9dec2634700fedc8d7a3f774f67c79b4f42d0bfdcad5daa19aeeecd382
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.44"
2
+ VERSION = "0.1.45"
3
3
  end
@@ -13,7 +13,7 @@ class GetCatalog
13
13
  FileUtils.rm_rf catalogLocation
14
14
  FileUtils.mkdir_p catalogLocation
15
15
  catalogLocation = Pathname.new(catalogLocation).realpath
16
- g = Git.clone(Canzea::config[:catalog_git], "", :path => catalogLocation)
16
+ g = Git.clone(Canzea::config[:catalog_git], "catalog", :path => catalogLocation)
17
17
  g.branch Canzea::config[:catalog_branch]
18
18
  if (tag != nil)
19
19
  puts "-- For tag #{tag}"
@@ -7,7 +7,7 @@ require "trace-runner"
7
7
 
8
8
  class HelperRun
9
9
  def initialize ()
10
- @basePath = Pathname.new(Canzea::config[:catalog_location]).realpath
10
+ @basePath = "#{Pathname.new(Canzea::config[:catalog_location]).realpath}/catalog"
11
11
  @log = Logger.new(Canzea::config[:logging_root] + '/plans.log')
12
12
  end
13
13
 
@@ -7,7 +7,7 @@ require 'prepare-environment'
7
7
 
8
8
  class PlanStep
9
9
  def initialize ()
10
- @basePath = Pathname.new(Canzea::config[:catalog_location]).realpath
10
+ @basePath = "#{Pathname.new(Canzea::config[:catalog_location]).realpath}/catalog"
11
11
  @log = Logger.new(Canzea::config[:logging_root] + '/plans.log')
12
12
  end
13
13
 
@@ -38,10 +38,10 @@ class PrepareEnvironment
38
38
  request = Net::HTTP::Get.new(uri.request_uri)
39
39
  resp = http.request(request)
40
40
 
41
- if resp.status != 200
41
+ if Integer(resp.code) != 200
42
42
  log.warn("KEY VALUE NOT FOUND! " + svc['name'])
43
43
  puts "-- KEY VALUE NOT FOUND! " + svc['name']
44
- abort("Problem #{resp.status_line}")
44
+ abort("Problem, response code #{resp.code}")
45
45
  end
46
46
 
47
47
  result = JSON.parse(resp.body)
@@ -63,7 +63,7 @@ class Worker
63
63
  t1 = Time.now
64
64
 
65
65
  begin
66
- workingDir = Canzea::config[:catalog_location]
66
+ workingDir = "#{Pathname.new(Canzea::config[:catalog_location]).realpath}/catalog"
67
67
 
68
68
  puts "-- Executing [#{workingDir}] #{l}"
69
69
  Dir.chdir(workingDir){
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canzea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.44
4
+ version: 0.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canzea Technologies