Sha256: bf9b79152e8e9ba8c916a5266fff84cef8958256b41bca9578155437067d05a0
Contents?: true
Size: 904 Bytes
Versions: 12
Compression:
Stored size: 904 Bytes
Contents
module Berkshelf module UI # Mute the output of this instance of UI until {#unmute!} is called def mute! @mute = true end # Unmute the output of this instance of UI until {#mute!} is called def unmute! @mute = false end def say(message = "", color = nil, force_new_line = nil) return if quiet? super(message, color) end alias_method :info, :say def say_status(status, message, log_status = true) return if quiet? super(status, message, log_status) end def warn(message, color = :yellow) return if quiet? say(message, color) end def deprecated(message) warn("[DEPRECATION] #{message}") end def error(message, color = :red) return if quiet? message = set_color(message, *color) if color super(message) end alias_method :fatal, :error end end
Version data entries
12 entries across 12 versions & 1 rubygems