Module: Flipper::CLI::ShellOutput
- Defined in:
- lib/flipper/cli.rb
Overview
Redirect the shell’s output to the given stdout and stderr streams
Instance Attribute Summary collapse
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
236 237 238 |
# File 'lib/flipper/cli.rb', line 236 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
236 237 238 |
# File 'lib/flipper/cli.rb', line 236 def stdout @stdout end |
Instance Method Details
#redirect(stdout: $stdout, stderr: $stderr) ⇒ Object
238 239 240 |
# File 'lib/flipper/cli.rb', line 238 def redirect(stdout: $stdout, stderr: $stderr) @stdout, @stderr = stdout, stderr end |