canzea 0.1.129 → 0.1.130
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/helper-run-class.rb +16 -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: 2b90aecde9c0e31499a7bcafa671d90854567685
|
4
|
+
data.tar.gz: 60a10a2bc87dbbb80c169828101634c2cce7b889
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b24df30bc34be1b2b199357abc9828f4494b48f28c5a3068f0dbab2f081ee964a0ed628a3a8341c5e7c06b0f6aec592c19741b52bc5f00bef9c4c7a1b8451f4
|
7
|
+
data.tar.gz: 5aa05979ce5badcab30751378ed48753ae8ea5b235a327d2137a5bab5fdb1c2f4922206d1fa79074460da38847fa4f3e13b379d87a9bc00bf622cde5d1303960
|
data/lib/canzea/version.rb
CHANGED
data/lib/helper-run-class.rb
CHANGED
@@ -44,6 +44,12 @@ class HelperRun
|
|
44
44
|
envPush.addToEnv "#{envScript}"
|
45
45
|
end
|
46
46
|
|
47
|
+
if File.exist?("#{@basePath}/helpers/#{solution}/#{action}.sh")
|
48
|
+
type = "shell"
|
49
|
+
elsif File.exist?("#{@basePath}/helpers/#{solution}/#{action}.py")
|
50
|
+
type = "python"
|
51
|
+
end
|
52
|
+
|
47
53
|
r = RunnerWorker.new @raw
|
48
54
|
|
49
55
|
ENV['CATALOG_LOCATION'] = "#{@basePath}";
|
@@ -55,8 +61,17 @@ class HelperRun
|
|
55
61
|
|
56
62
|
if (type == "ruby")
|
57
63
|
cmd = "ruby #{@basePath}/helpers/#{solution}/#{action}.rb '#{parameters}'"
|
64
|
+
elsif (type == "python")
|
65
|
+
cmd = "python #{@basePath}/helpers/#{solution}/#{action}.py '#{parameters}'"
|
58
66
|
else
|
59
|
-
|
67
|
+
argList = []
|
68
|
+
args = JSON.parse(parameters)
|
69
|
+
args.each do | k |
|
70
|
+
argList.push('--' + k[0])
|
71
|
+
argList.push('"' + k[1] + '"')
|
72
|
+
end
|
73
|
+
|
74
|
+
cmd = "#{@basePath}/helpers/#{solution}/#{action}.sh #{argList.join(' ')}"
|
60
75
|
end
|
61
76
|
r.run cmd, 1, 1, status
|
62
77
|
|
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.130
|
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-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|