17 Commits

Author SHA1 Message Date
Megan Marsh
1fdf763d0f fancier logging 2018-05-21 11:25:51 -07:00
Megan Marsh
1bea658e16 fix command and inline calls on windows 2018-05-07 15:10:10 -07:00
Megan Marsh
fabd1a6517 windows cmd env vars 2018-05-07 15:10:10 -07:00
Megan Marsh
9651432378 preserver BC for people using 'command' option 2018-05-07 15:10:10 -07:00
Megan Marsh
dd183f22d9 update docs and add warnings around WSL limitations 2018-05-07 15:10:10 -07:00
Megan Marsh
51bcc7aa13 add new feature for telling shell-local whether to use linux pathing on windows; update docs with some examples. 2018-05-07 15:10:10 -07:00
Megan Marsh
e983a94a88 fix default windows bash call for shell-local provisioner and move chmod command from the execute_command array into the portion of code where we actually generate inline scripts, sparing users the need to think about this modification which Packer should really handle on its own
make bash call work on windows
2018-05-07 15:10:10 -07:00
Megan Marsh
5da4377f21 first pass at docs update 2018-05-07 15:10:10 -07:00
Megan Marsh
854d6fb141 add tests making sure post-processor has backwards compatability 2018-05-07 15:10:10 -07:00
Megan Marsh
f799003b66 tighten up shell-local config validation 2018-05-07 15:10:10 -07:00
Megan Marsh
479d36734d consolidate shell-local defaulting of InlineShebang and ExecuteCommand to the config validation 2018-05-07 15:10:10 -07:00
Megan Marsh
d304234725 fix tests 2018-05-07 15:10:10 -07:00
Megan Marsh
67739270bb pull temp file writing into its own function for easier testing 2018-05-07 15:10:10 -07:00
Megan Marsh
6dc4b1cbdc move all of the run commands for shell-local provisioner and postprocessor into common library too 2018-05-07 15:10:09 -07:00
Megan Marsh
c7c66bedcb set inline to an empty array, rather than nil 2018-05-07 15:10:09 -07:00
Megan Marsh
926327beba deduplicate all validation and interpolation of the shell-local config, sharing options between shell-local provisioner and post-processor. Maintain backwards compatibility with shell-local provisioner. 2018-05-07 15:10:09 -07:00
Megan Marsh
616b41e58f deduplicate the nearly identical communicators for the shell-local provisioner and post-processor, moving single communicator into a new common/shell-local module 2018-05-07 15:10:09 -07:00