canzea 0.1.51 → 0.1.52

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: 95ec2420425b4a54598beb613960dd41b4c99cca
4
- data.tar.gz: 71643349ac431c5a42782c1bdf0c7d4e51b83c7a
3
+ metadata.gz: 390ee4ba6c6f48f66af2927ac8a04a46bc0ac2f6
4
+ data.tar.gz: e777299589e57b5c4e43a348e0abfc2d50b1f0b3
5
5
  SHA512:
6
- metadata.gz: 3c68281883a8a9bd8a74d9e1d9d3e2a55ff536ca436b64a6880158bbdd2e091676c9521e879696e90ee4d7db587508b2c49482826ddc86f5fc2995bd4918c799
7
- data.tar.gz: a7d9a0511826b81d1d2441e2c0fccbccad28c45f5b824df3e4fca74aa4187b8e965913c5c32c2b7c6e4fa4c58439dbb781a4fcfd87fb31f297c163534b9c2383
6
+ metadata.gz: ab3066df1f6a412ee93a9478177d87ca4236acd69e3d5698b8d362c32d45b80c26f7e7db005708afd09cf70167a5be9c88a37ff94ce247144bf7136669e7371c
7
+ data.tar.gz: 67f6843d131a9546e773e9c75ae7516a5bdb99387669e2762942353e564a8f59ba1a59114c7de708cfea902ed23d0677660f28a6018651378f3ccf4efa8cda0f
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.51"
2
+ VERSION = "0.1.52"
3
3
  end
@@ -14,6 +14,8 @@ class ApplyConfig
14
14
  index = 1
15
15
  steps["steps"].each { | step |
16
16
 
17
+ injectEnvironmentVariables()
18
+
17
19
  role = step['role']
18
20
  solution = step['solution']
19
21
  puts "#{stepNum} and #{index}"
@@ -25,4 +27,19 @@ class ApplyConfig
25
27
  index = index + 1
26
28
  }
27
29
  end
30
+
31
+ def injectEnvironmentVariables()
32
+ extraConfig = Canzea::config[:catalog_location] + "/env.json"
33
+ if File.exists?(extraConfig)
34
+ puts "-- Reading #{extraConfig}"
35
+ file = File.read(extraConfig)
36
+ envs = JSON.parse(file)
37
+ envs.keys do | key |
38
+ puts "#{key} == #{envs[key]}"
39
+ ENV.store(key, envs[key])
40
+ end
41
+ end
42
+
43
+ end
44
+
28
45
  end
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.51
4
+ version: 0.1.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canzea Technologies
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-15 00:00:00.000000000 Z
11
+ date: 2016-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler