-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(MODULES-8431) Update windows installation to use powershell
This commit updates the installation method on windows to use a powershell script rather than a batch file
- Loading branch information
Sean P. McDonald
committed
Jan 15, 2019
1 parent
63ad770
commit 6aba3a6
Showing
5 changed files
with
326 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Puppet::Parser::Functions | ||
newfunction(:windows_msi_installargs, :arity => 1, :type => :rvalue, :doc => <<-EOS | ||
Return the $install_options parameter as a string usable in an msiexec command | ||
EOS | ||
) do |args| | ||
|
||
install_args = args[0] | ||
|
||
arg_string = install_args.map do |option| | ||
if option.class == Hash | ||
key_value = option.shift | ||
"#{key_value[0]}=\"#{key_value[1]}\"" | ||
else | ||
option | ||
end | ||
end | ||
return arg_string.join(' ') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.