We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d6309 commit 98fb8cbCopy full SHA for 98fb8cb
WebKitDev/Functions/Install-Ruby.ps1
@@ -27,17 +27,14 @@ function Install-Ruby {
27
[AllowNull()]
28
[string]$installationPath
29
)
30
-
31
- $url = ('https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-{0}/rubyinstaller-{0}-x64.exe' -f $version);
32
33
- $options = @(
34
- '/verysilent',
35
- '/tasks="assocfiles,modpath"'
36
- );
+ $packageParameters = @();
37
38
if ($installationPath) {
39
- $options += ('/dir="{0}"' -f $installationPath);
+ $packageParameters += ('/InstallDir:"{0}"' -f $installationPath);
40
}
41
42
- Install-FromExe -Name 'ruby' -url $url -Options $options;
+ Install-FromChoco `
+ -Name 'ruby' `
+ -Version $version `
+ -PackageParameters $packageParameters;
43
0 commit comments