henry-container 0.1.44 → 0.1.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2dd35726ddf12bf9a15959465db2d8681ecba084
4
- data.tar.gz: c2cf0889efcde1f8d4185d2c7d2f2c561780a9d0
3
+ metadata.gz: 13d6548ea945776b404a8f76cb43101d7f30d88f
4
+ data.tar.gz: 151ef19153f25da385b6d9d747825c31b823737a
5
5
  SHA512:
6
- metadata.gz: 1abe287198b06bb415eb72cf35f74313b3136725e4a1291398e5d85b8df4c060d637272c37721dd4661c277e9b1b8d4289bf6265c3eef05f291dab9b391cc0ad
7
- data.tar.gz: b69e9399de97902cab5721039aa51f2eda1544aa46d1a4ec17e21be95b232bd14dab34279cdbf46314e70f62e710cbc97a070352087ae9b18f48f1a9f7a325d8
6
+ metadata.gz: b8db4fd8024670a28060b5ace9dc547541c890def59e4ed5b5b2b7e473c31576b2fbf9dafe92f1a820d16e7493f2a38f74efa4bf1339971867b630380eb41ac4
7
+ data.tar.gz: 0409f3853fc1474f80134e0a45f6f83bb82a59cc144dc3da7125a12948d878082b292d4c9543dbc545148e81f5649eb9634ab19cbe7f986ccf30a6f4cb7862dd
data/lib/henry/config.rb CHANGED
@@ -5,7 +5,7 @@ module Henry
5
5
  class Config < Henry::Input
6
6
 
7
7
  # ENV key where the Config will be exported to/imported from.
8
- EXPORT_KEY = 'HENRY_CONFIG'
8
+ @@export_key = 'HENRY_CONFIG'
9
9
 
10
10
  end
11
11
 
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = '0.1.44'
6
+ VERSION = '0.1.45'
7
7
 
8
8
  end
9
9
 
data/lib/henry/input.rb CHANGED
@@ -5,7 +5,7 @@ module Henry
5
5
  attr_reader :params
6
6
 
7
7
  # ENV key where the Input will be exported to/imported from.
8
- EXPORT_KEY = 'HENRY_INPUT'
8
+ @@export_key = 'HENRY_INPUT'
9
9
 
10
10
  # Initialize the Input with the given params or empty.
11
11
  #
@@ -26,7 +26,7 @@ module Henry
26
26
  #
27
27
  # @return [Input]
28
28
  def export!
29
- ENV[EXPORT_KEY] = JSON.dump(@params)
29
+ ENV[@@export_key] = JSON.dump(@params)
30
30
  self
31
31
  end
32
32
 
@@ -41,8 +41,8 @@ module Henry
41
41
  #
42
42
  # @return [Input]
43
43
  def import!
44
- if ENV[EXPORT_KEY]
45
- @params = JSON.parse(ENV[EXPORT_KEY])
44
+ if ENV[@@export_key]
45
+ @params = JSON.parse(ENV[@@export_key])
46
46
  else
47
47
  warn("Could not load the execution params.\nAre you running this Task via the henry-ruby-container? You should!".red)
48
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henry-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.44
4
+ version: 0.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Decurnex