Provisioners use new logger on environment
This commit is contained in:
parent
6e757e7ab7
commit
504b709f2d
|
@ -26,12 +26,12 @@ module Vagrant
|
|||
end
|
||||
|
||||
if vm.created?
|
||||
logger.info "VM '#{name}' already created. Booting if its not already running..."
|
||||
vm.env.logger.info "VM '#{name}' already created. Booting if its not already running..."
|
||||
vm.start
|
||||
else
|
||||
vm.env.require_box
|
||||
|
||||
logger.info "Creating VM '#{name}'"
|
||||
vm.env.logger.info "Creating VM '#{name}'"
|
||||
vm.up
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,6 +22,12 @@ module Vagrant
|
|||
@vm.env
|
||||
end
|
||||
|
||||
# This method returns the environment's logger as a convenience
|
||||
# method.
|
||||
def logger
|
||||
env.logger
|
||||
end
|
||||
|
||||
# This is the method called to "prepare" the provisioner. This is called
|
||||
# before any actions are run by the action runner (see {Vagrant::Actions::Runner}).
|
||||
# This can be used to setup shared folders, forward ports, etc. Whatever is
|
||||
|
|
Loading…
Reference in New Issue