Method: ProcessExecuter::Destinations::FilePath#initialize
- Defined in:
- lib/process_executer/destinations/file_path.rb
#initialize(destination) ⇒ FilePath
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes a new file path destination handler
Opens the file at the given path for writing.
16 17 18 19 |
# File 'lib/process_executer/destinations/file_path.rb', line 16 def initialize(destination) super @file = File.open(destination, 'w', 0o644) end |