class Rubypack::QuietOutput

Class used to supress all message to the stdout/stderr.

Public Instance Methods

error(*messages) click to toggle source
# File lib/rubypack/shell_output.rb, line 24
def error(*messages)
  # nothing to do
end
status(*messages) click to toggle source
# File lib/rubypack/shell_output.rb, line 16
def status(*messages)
  # nothing to do
end
step(action) { || ... } click to toggle source
# File lib/rubypack/shell_output.rb, line 5
def step(action)
  status(action)
  result = yield
  status('  [ OK ]')
  result
rescue => exception
  error('  [ FAIL ]', exception.message)
  verbose(exception.backtrace.join("\n"))
  nil
end
verbose(*messages) click to toggle source
# File lib/rubypack/shell_output.rb, line 20
def verbose(*messages)
  # nothing to do
end