Output shell script that is running [GH-1568]

This commit is contained in:
Mitchell Hashimoto 2013-04-10 11:27:45 -07:00
parent 28de46f3b4
commit 6b3e028166
3 changed files with 11 additions and 1 deletions

View File

@ -55,6 +55,7 @@ IMPROVEMENTS:
rather than the less-than-helpful class name.
- Shared folders with the same guest path will overwrite each other. No
more shared folder IDs.
- Shell provisioner outputs script it is running. [GH-1568]
BUG FIXES:

View File

@ -14,6 +14,14 @@ module VagrantPlugins
@machine.communicate.tap do |comm|
comm.upload(path.to_s, config.upload_path)
if config.path
@machine.ui.info(I18n.t("vagrant.provisioners.shell.running",
script: path.to_s))
else
@machine.ui.info(I18n.t("vagrant.provisioners.shell.running",
script: "inline script"))
end
# Execute it with sudo
comm.sudo(command) do |type, data|
if [:stderr, :stdout].include?(type)

View File

@ -1107,9 +1107,10 @@ en:
shell:
args_not_string: "Shell provisioner `args` must be a string."
path_and_inline_set: "Only one of `path` or `inline` may be set."
no_path_or_inline: "One of `path` or `inline` must be set."
path_and_inline_set: "Only one of `path` or `inline` may be set."
path_invalid: "`path` for shell provisioner does not exist on the host system: %{path}"
running: "Running: %{script}"
upload_path_not_set: "`upload_path` must be set for the shell provisioner."
ansible: