Class: Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/yesman/logger.rb

Instance Method Summary collapse

Instance Method Details

#line_breakObject



20
21
22
# File 'lib/yesman/logger.rb', line 20

def line_break
  puts ""
end

#log_creation(heading, file_path) ⇒ Object



9
10
11
# File 'lib/yesman/logger.rb', line 9

def log_creation heading, file_path
  puts "... #{Paint[heading, :green]} #{file_path}"
end

#log_emphasis(heading, message) ⇒ Object



5
6
7
# File 'lib/yesman/logger.rb', line 5

def log_emphasis heading, message
  puts "#{Paint[heading, :green]} #{Paint[message, :cyan]}"
end

#log_heading(heading) ⇒ Object



13
14
15
# File 'lib/yesman/logger.rb', line 13

def log_heading heading
  puts "#{Paint[heading, :yellow]}"
end

#log_message(message) ⇒ Object



17
18
19
# File 'lib/yesman/logger.rb', line 17

def log_message message
  puts "#{message}"
end