Sha256: 1aeb0e8b1425ae143e81a09184c8ef1bfd157a9915867a6bb1c13f1f41a83a0c
Contents?: true
Size: 850 Bytes
Versions: 12
Compression:
Stored size: 850 Bytes
Contents
module Berkshelf class UI < ::Thor::Shell::Basic # 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 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