Sha256: 3d12ff667248d399549c9d0e297a68b3dffdf3c7b64b9f895e0a120de2c86452
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
module HeadChef module UI def mute! @mute = true end def unmute! @mute = false end def error(message, color = :red) message = set_color(message, *color) if color super(message) end def info(message, color = :cyan) message = set_color(message, *color) if color super(message) end end end Thor::Base.shell.send(:include, HeadChef::UI)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
head_chef-0.1.1 | lib/head_chef/ui.rb |
head_chef-0.1.0 | lib/head_chef/ui.rb |