providers/virtualbox: more detailed output
This commit is contained in:
parent
5b449c8000
commit
ea77194384
|
@ -35,8 +35,8 @@ module VagrantPlugins
|
|||
if vms.has_key?(name)
|
||||
@logger.info("Not setting the name because our name is already set.")
|
||||
else
|
||||
@logger.info("Setting the name of the VM: #{name}")
|
||||
env[:ui].info(I18n.t("vagrant.actions.vm.set_name.setting_name"))
|
||||
env[:ui].info(I18n.t(
|
||||
"vagrant.actions.vm.set_name.setting_name", name: name))
|
||||
env[:machine].provider.driver.set_name(name)
|
||||
end
|
||||
|
||||
|
|
|
@ -35,12 +35,13 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
# Go through each folder and mount
|
||||
machine.ui.info(I18n.t("vagrant.actions.vm.share_folders.mounting"))
|
||||
machine.ui.output(I18n.t("vagrant.actions.vm.share_folders.mounting"))
|
||||
folders.each do |id, data|
|
||||
if data[:guestpath]
|
||||
# Guest path specified, so mount the folder to specified point
|
||||
machine.ui.info(I18n.t("vagrant.actions.vm.share_folders.mounting_entry",
|
||||
:guest_path => data[:guestpath]))
|
||||
machine.ui.detail(I18n.t("vagrant.actions.vm.share_folders.mounting_entry",
|
||||
guestpath: data[:guestpath],
|
||||
hostpath: data[:hostpath]))
|
||||
|
||||
# Dup the data so we can pass it to the guest API
|
||||
data = data.dup
|
||||
|
@ -55,8 +56,8 @@ module VagrantPlugins
|
|||
:mount_virtualbox_shared_folder, id, data[:guestpath], data)
|
||||
else
|
||||
# If no guest path is specified, then automounting is disabled
|
||||
machine.ui.info(I18n.t("vagrant.actions.vm.share_folders.nomount_entry",
|
||||
:host_path => data[:hostpath]))
|
||||
machine.ui.detail(I18n.t("vagrant.actions.vm.share_folders.nomount_entry",
|
||||
:hostpath => data[:hostpath]))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1189,11 +1189,11 @@ en:
|
|||
share_folders:
|
||||
creating: Creating shared folders metadata...
|
||||
mounting: Mounting shared folders...
|
||||
mounting_entry: "-- %{guest_path}"
|
||||
nomount_entry: "-- Automounting disabled: %{host_path}"
|
||||
mounting_entry: "%{guestpath} => %{hostpath}"
|
||||
nomount_entry: "Automounting disabled: %{hostpath}"
|
||||
set_name:
|
||||
setting_name: |-
|
||||
Setting the name of the VM...
|
||||
Setting the name of the VM: %{name}
|
||||
suspend:
|
||||
suspending: Saving VM state and suspending execution...
|
||||
|
||||
|
|
Loading…
Reference in New Issue