Class: Rubypack::QuietOutput
- Inherits:
-
Object
- Object
- Rubypack::QuietOutput
- Defined in:
- lib/rubypack/shell_output.rb
Overview
Class used to supress all message to the stdout/stderr.
Direct Known Subclasses
Instance Method Summary collapse
- #error(*messages) ⇒ Object
- #status(*messages) ⇒ Object
- #step(action) ⇒ Object
- #verbose(*messages) ⇒ Object
Instance Method Details
#error(*messages) ⇒ Object
24 25 26 |
# File 'lib/rubypack/shell_output.rb', line 24 def error(*) # nothing to do end |
#status(*messages) ⇒ Object
16 17 18 |
# File 'lib/rubypack/shell_output.rb', line 16 def status(*) # nothing to do end |
#step(action) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rubypack/shell_output.rb', line 5 def step(action) status(action) result = yield status(' [ OK ]') result rescue => exception error(' [ FAIL ]', exception.) verbose(exception.backtrace.join("\n")) nil end |
#verbose(*messages) ⇒ Object
20 21 22 |
# File 'lib/rubypack/shell_output.rb', line 20 def verbose(*) # nothing to do end |