remove ruby doc folder

This commit is contained in:
Aleksandr Chebotov
2020-11-13 10:25:05 +03:00
parent fe3f5efbe8
commit 5534aa6946
2 changed files with 5 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ function Install-Ruby
if (-not (Test-Path $rubyToolcachePath))
{
Write-Host "Create Ruby toolcache folder"
Write-Host "Creating Ruby toolcache folder"
New-Item -ItemType Directory -Path $rubyToolcachePath | Out-Null
}
@@ -70,6 +70,9 @@ function Install-Ruby
Write-Host "Moving Ruby '${rubyVersion}' files to '${rubyArchPath}'"
Move-Item -Path $tempFolder -Destination $rubyArchPath | Out-Null
Write-Host "Removing Ruby '${rubyVersion}' documentation '${rubyArchPath}\share\doc' folder"
Remove-Item -Path "${rubyArchPath}\share\doc" -Force -Recurse -ErrorAction Ignore
Write-Host "Installing Bundler"
cmd.exe /c "$rubyArchPath\bin\gem.cmd install bundler -v ""~> 2"" --no-document"

View File

@@ -215,15 +215,6 @@
"type": "windows-restart",
"restart_timeout": "10m"
},
{
"type": "powershell",
"environment_vars": [
"ROOT_FOLDER={{user `root_folder`}}"
],
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-Ruby.ps1"
]
},
{
"type": "windows-shell",
"inline": [
@@ -238,6 +229,7 @@
"PSMODULES_ROOT_FOLDER={{user `psmodules_root_folder`}}"
],
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-Ruby.ps1",
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
"{{ template_dir }}/scripts/Installers/Install-Toolset.ps1",
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1",