vagrant/plugins/communicators
Jeff Bonhag e672e5dc65
Fix issues with Windows SSH provisioner
Windows commands that run over SSH are wrapped in a script that writes a
special marker to the two output streams (stdout and stderr).  This
allows Vagrant to consume the output streams.

Unfortunately, this leads to a sort of chicken-and-egg problem where no
commands can be run before a wrapper script exists. For example, you
can't make a destination directory to upload the wrapper script without
first creating a wrapper script to make the directory. :)

This commit changes the behavior of the WinSSH communicator to assume
that the destination directory already exists for provisioning scripts.

It also moves the default `upload_path` from the shell provisioner
config so we can have OS-specific defaults.

Finally, it introduces a Windows-specific #upload method which will
properly use a Windows path separator on a non-Windows host.
2020-01-13 13:55:48 -05:00
..
ssh Fix issues with Windows SSH provisioner 2020-01-13 13:55:48 -05:00
winrm Update communicator upload behavior to handle `/.` path directives 2019-02-26 08:02:09 -08:00
winssh Fix issues with Windows SSH provisioner 2020-01-13 13:55:48 -05:00