henry-container 0.0.47 → 0.0.48

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.
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = '0.0.47'
6
+ VERSION = '0.0.48'
7
7
 
8
8
  end
9
9
 
@@ -70,6 +70,13 @@ module Henry
70
70
  def hints_file_path
71
71
  "#{@opts[:"hints-dir"]}/#{@opts[:hints]}"
72
72
  end
73
+
74
+ # Returns the task hints patched file path based on the given options.
75
+ #
76
+ # @return [String] the task hints file path.
77
+ def hints_file_patched_path
78
+ "#{@opts[:"in-dir"]}/#{@opts[:hints]}"
79
+ end
73
80
 
74
81
  # Executes required validations before execution.
75
82
  def before_execution
@@ -132,6 +139,11 @@ module Henry
132
139
  #
133
140
  # @return [Hash] the hints:w
134
141
  def load_hints
142
+ # To be removed once that the Worker starts using the --hints-path
143
+ if File.exists?(self.hints_file_patched_path)
144
+ return JSON.parse(File.read(self.hints_file_patched_path))
145
+ end
146
+
135
147
  return {} unless File.exists?(self.hints_file_path)
136
148
 
137
149
  JSON.parse(File.read(self.hints_file_path))
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.0.47
4
+ version: 0.0.48
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: