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 +4 -4
- data/lib/canzea/config.rb +2 -1
- data/lib/canzea/version.rb +1 -1
- data/lib/canzea.rb +1 -1
- data/lib/commands/get-catalog.rb +4 -4
- data/lib/helper-run-class.rb +1 -1
- data/lib/plan-step-class.rb +1 -1
- 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: f044b15355be39ada305f6a837d56a9c6fa53db1
|
4
|
+
data.tar.gz: 6e0136659aeb11b0568e3861027c57e8f82330b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
:
|
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",
|
data/lib/canzea/version.rb
CHANGED
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[:
|
89
|
+
extraConfig = Canzea::config[:config_location] + "/config.json"
|
90
90
|
if File.exists?(extraConfig)
|
91
91
|
if (opts[:verbose])
|
92
92
|
puts "-- Reading #{extraConfig}"
|
data/lib/commands/get-catalog.rb
CHANGED
@@ -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}
|
14
|
-
FileUtils.mkdir_p "#{catalogLocation}
|
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
|
data/lib/helper-run-class.rb
CHANGED
@@ -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}"
|
11
11
|
@log = Logger.new(Canzea::config[:logging_root] + '/plans.log')
|
12
12
|
end
|
13
13
|
|
data/lib/plan-step-class.rb
CHANGED
@@ -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}/"
|
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.
|
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-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|