Module: Ukiryu::Redirection
- Defined in:
- lib/ukiryu/io.rb
Overview
File redirection primitives
Provides utilities for file redirection operations
Class Method Summary collapse
-
.stderr_to_stdout ⇒ Hash
Redirect stderr to stdout (2>&1 in shell).
-
.to(stream, path) ⇒ Hash
Redirect output to a file.
Class Method Details
.stderr_to_stdout ⇒ Hash
Redirect stderr to stdout (2>&1 in shell)
129 130 131 |
# File 'lib/ukiryu/io.rb', line 129 def self.stderr_to_stdout { stderr: :stdout } end |
.to(stream, path) ⇒ Hash
Redirect output to a file
119 120 121 |
# File 'lib/ukiryu/io.rb', line 119 def self.to(stream, path) { stream => path } end |