Module: Rfix::Log

Included in:
CLI::Command::Base, CLI::Command::Config, File::Base, Formatter
Defined in:
lib/rfix/log.rb

Class Method Summary collapse

Class Method Details

.promptObject



11
12
13
# File 'lib/rfix/log.rb', line 11

def prompt
  @prompt ||= TTY::Prompt.new
end

.say(message) ⇒ Object



15
16
17
# File 'lib/rfix/log.rb', line 15

def say(message)
  prompt.ok(message)
end

.say!(message) ⇒ Object



19
20
21
# File 'lib/rfix/log.rb', line 19

def say!(message)
  prompt.warn(message)
end