Class: PodUpdater::UI
- Inherits:
-
Object
- Object
- PodUpdater::UI
- Defined in:
- lib/pod_updater/ui.rb
Class Method Summary collapse
- .err(msg) ⇒ Object
- .log_cmd(msg) ⇒ Object
- .msg(msg) ⇒ Object
- .success(msg) ⇒ Object
- .warning(msg) ⇒ Object
Class Method Details
.err(msg) ⇒ Object
6 7 8 |
# File 'lib/pod_updater/ui.rb', line 6 def self.err(msg) puts msg.colorize(:red) end |
.log_cmd(msg) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/pod_updater/ui.rb', line 22 def self.log_cmd(msg) if msg.kind_of?(Array) msg = msg.join(' && ') end puts msg.to_s.colorize(:blue) end |
.msg(msg) ⇒ Object
14 15 16 |
# File 'lib/pod_updater/ui.rb', line 14 def self.msg(msg) puts msg.colorize(:green) end |
.success(msg) ⇒ Object
10 11 12 |
# File 'lib/pod_updater/ui.rb', line 10 def self.success(msg) puts msg.colorize(:green) end |
.warning(msg) ⇒ Object
18 19 20 |
# File 'lib/pod_updater/ui.rb', line 18 def self.warning(msg) puts msg.colorize(:yellow) end |