canzea 0.1.74 → 0.1.76

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: 477ee9c77b2b7b9b5f0c95c7de5eb5e10c628d12
4
- data.tar.gz: 5b89c6939bf27cf5ab983ddaca40ba4453b8bbdf
3
+ metadata.gz: f044b15355be39ada305f6a837d56a9c6fa53db1
4
+ data.tar.gz: 6e0136659aeb11b0568e3861027c57e8f82330b9
5
5
  SHA512:
6
- metadata.gz: 222eaa3d567eb7afe540af568c21cf48348942418bbc57a82805899332351890afcb2fa0d38e3c39acce57e3f5d2ca373dd2b56cdd16340007ce6832253b268e
7
- data.tar.gz: fcefe1a77597ec471541beedf12366cd8bc8bc1488cdf570b94d4ada9d63ba55622eea8724253157fb106eaa6c7659abbb93499d8d291ef8bac2dceb66a9dae1
6
+ metadata.gz: aeaedea93f32cde0fbeba592790b68592a9544f3cc25f0fabcd4d8bf1339b542156b8f7c7344de5e1699432b6932303a116ea503b48ce0aea19a429936c43230
7
+ data.tar.gz: df5ab8ecaa7b4b10bdf43dc04451c3bfaa9c31a01bd3d4d115d66bd7fef10ce38cb0227e1364d058b30579ef5f5b66d86a0a36dce305c8b44f83f74a00118ba9
data/lib/canzea/config.rb CHANGED
@@ -5,7 +5,8 @@ module Canzea
5
5
  # Configuration defaults
6
6
  @config = {
7
7
  :log_level => "verbose",
8
- :catalog_location => "#{Dir.home}/.ecosystem-catalog",
8
+ :config_location => "#{Dir.home}/.ecosystem-catalog",
9
+ :catalog_location => "#{Dir.home}/.ecosystem-catalog/catalog",
9
10
  :catalog_git => "https://gitlab.com/canzea/ecosystem-catalog.git",
10
11
  :catalog_branch => "develop",
11
12
  :git_repo => "/opt/cloud-profile",
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.74"
2
+ VERSION = "0.1.76"
3
3
  end
data/lib/canzea.rb CHANGED
@@ -86,7 +86,7 @@ module Canzea
86
86
  Canzea::configure JSON.parse(file)
87
87
  end
88
88
 
89
- extraConfig = Canzea::config[:catalog_location] + "/config.json"
89
+ extraConfig = Canzea::config[:config_location] + "/config.json"
90
90
  if File.exists?(extraConfig)
91
91
  if (opts[:verbose])
92
92
  puts "-- Reading #{extraConfig}"
@@ -10,9 +10,9 @@ class GetCatalog
10
10
  end
11
11
  def do(tag = nil)
12
12
  catalogLocation = Canzea::config[:catalog_location]
13
- FileUtils.rm_rf "#{catalogLocation}/catalog"
14
- FileUtils.mkdir_p "#{catalogLocation}/catalog"
15
- catalogLocation = Pathname.new(catalogLocation).realpath
13
+ FileUtils.rm_rf "#{catalogLocation}"
14
+ FileUtils.mkdir_p "#{catalogLocation}"
15
+ catalogLocation = Pathname.new(catalogLocation).parent().realpath
16
16
  g = Git.clone(Canzea::config[:catalog_git], "catalog", :path => catalogLocation)
17
17
  g.branch Canzea::config[:catalog_branch]
18
18
  if (tag != nil)
@@ -20,7 +20,7 @@ class GetCatalog
20
20
  g.tag tag
21
21
  end
22
22
  puts "-- Branch '#{g.branch}' Commit #{g.log[0]}"
23
- puts "-- Source #{catalogLocation}"
23
+ puts "-- Source #{catalogLocation}/catalog"
24
24
  end
25
25
 
26
26
  end
@@ -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}/catalog"
10
+ @basePath = "#{Pathname.new(Canzea::config[:catalog_location]).realpath}"
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}/catalog"
10
+ @basePath = "#{Pathname.new(Canzea::config[:catalog_location]).realpath}/"
11
11
  @log = Logger.new(Canzea::config[:logging_root] + '/plans.log')
12
12
  end
13
13
 
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.74
4
+ version: 0.1.76
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-03-23 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler