Class: Vgrnt::Logger
- Inherits:
-
Object
- Object
- Vgrnt::Logger
- Defined in:
- lib/vgrnt/base.rb
Instance Method Summary collapse
Instance Method Details
#debug(str) ⇒ Object
17 18 19 |
# File 'lib/vgrnt/base.rb', line 17 def debug(str) $stderr.puts str if !str.empty? && ENV['VAGRANT_LOG'] == 'debug' end |
#error(str) ⇒ Object
21 22 23 24 |
# File 'lib/vgrnt/base.rb', line 21 def error(str) # terminal codes for red $stderr.puts "\e[31m" + str + "\e[0m" unless str.empty? end |
#notice(str) ⇒ Object
13 14 15 |
# File 'lib/vgrnt/base.rb', line 13 def notice(str) $stderr.puts str unless str.empty? end |
#stdout(str) ⇒ Object
9 10 11 |
# File 'lib/vgrnt/base.rb', line 9 def stdout(str) $stdout.puts str unless str.empty? end |