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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f73444beba7832a0d993228ef92b18301ba70db
4
- data.tar.gz: ff3c3b9af6c99810f4be99057d22292142c512aa
3
+ metadata.gz: 2b90aecde9c0e31499a7bcafa671d90854567685
4
+ data.tar.gz: 60a10a2bc87dbbb80c169828101634c2cce7b889
5
5
  SHA512:
6
- metadata.gz: aba32863a59b07dca93e0adabb346bd48d6de34f72d35fdf7ceea0f24fb070fa1544d84c1915831d939044f549e3aedbc2ca7ebac1445aa27a8d7d1c938e1cc4
7
- data.tar.gz: 58cde59a257da98bc3827a1915b213da3345ad5e14be309baccfbfcab4722a5aff4627c10596e735fcae78e3d0ecd11b4e3d30bf27bb17f0bc442464c6a1a8e2
6
+ metadata.gz: 4b24df30bc34be1b2b199357abc9828f4494b48f28c5a3068f0dbab2f081ee964a0ed628a3a8341c5e7c06b0f6aec592c19741b52bc5f00bef9c4c7a1b8451f4
7
+ data.tar.gz: 5aa05979ce5badcab30751378ed48753ae8ea5b235a327d2137a5bab5fdb1c2f4922206d1fa79074460da38847fa4f3e13b379d87a9bc00bf622cde5d1303960
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.129"
2
+ VERSION = "0.1.130"
3
3
  end
@@ -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
- cmd = "#{@basePath}/helpers/#{solution}/#{action}.sh \"#{parameters}\""
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.129
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-07-01 00:00:00.000000000 Z
11
+ date: 2017-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler