Show source and destination locations with file provisioner

Prior to this commit, Vagrants output would only show that a file
provisioner was running, but had no detail as to what file was being
copied to where. This is especially confusing if a Vagrantfile has
multiple file provisioners. This commit updates that by showing the
source and destination of the file so that it's clearer what is being
copied and to where.
This commit is contained in:
Brian Cain 2019-01-07 11:43:27 -08:00
parent d84d9ee059
commit b5db5c0156
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,8 @@ module VagrantPlugins
end
comm.execute(command)
@machine.ui.detail(I18n.t("vagrant.actions.vm.provision.file.locations",
src: source, dst: destination))
# now upload the file
comm.upload(source, destination)
end

View File

@ -2323,6 +2323,8 @@ en:
disabled_by_sentinel: |-
Machine already provisioned. Run `vagrant provision` or use the `--provision`
flag to force provisioning. Provisioners marked to run always will still run.
file:
locations: "%{src} => %{dst}"
resume:
resuming: Resuming suspended VM...
unpausing: |-