Module: VagrantBindfs::Vagrant::Actions::Concerns::Log

Included in:
Installer, Mounter
Defined in:
lib/vagrant-bindfs/vagrant/actions/concerns/log.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#debug(message) ⇒ Object



12
13
14
# File 'lib/vagrant-bindfs/vagrant/actions/concerns/log.rb', line 12

def debug(message)
  logger.detail(message) if config.debug
end

#detail(message) ⇒ Object



16
17
18
# File 'lib/vagrant-bindfs/vagrant/actions/concerns/log.rb', line 16

def detail(message)
  logger.detail(message)
end

#error(message) ⇒ Object



28
29
30
# File 'lib/vagrant-bindfs/vagrant/actions/concerns/log.rb', line 28

def error(message)
  logger.error message
end

#info(message) ⇒ Object



20
21
22
# File 'lib/vagrant-bindfs/vagrant/actions/concerns/log.rb', line 20

def info(message)
  logger.info message
end

#loggerObject



8
9
10
# File 'lib/vagrant-bindfs/vagrant/actions/concerns/log.rb', line 8

def logger
  env[:ui]
end

#warn(message) ⇒ Object



24
25
26
# File 'lib/vagrant-bindfs/vagrant/actions/concerns/log.rb', line 24

def warn(message)
  logger.warn message
end