Class: Henry::Environment
- Inherits:
-
Object
- Object
- Henry::Environment
- Defined in:
- lib/henry/environment.rb
Overview
Henry Environmet. To be used as proxy to access the Task execution params from the tests
Constant Summary collapse
- EXPORT_FILE_PATH =
The path to the default file export directory
"/output"
Class Method Summary collapse
-
.export_file(path) ⇒ Object
Copies the file from the given path to the default export directory.
-
.logger ⇒ Logger
Gets the Task Logger instance vis DBr.
-
.params ⇒ Hash
Imports and returs the Task execution parameters.
Class Method Details
.export_file(path) ⇒ Object
Copies the file from the given path to the default export directory
38 39 40 |
# File 'lib/henry/environment.rb', line 38 def self.export_file(path) FileUtils.copy_file(path, "#{EXPORT_FILE_PATH}/#{File.basename(path)}") end |
.logger ⇒ Logger
Gets the Task Logger instance vis DBr.
31 32 33 |
# File 'lib/henry/environment.rb', line 31 def self.logger return DRbObject.new_with_uri(LoggerService::DRB_URI) end |