Add Google Cloud SDK for Windows (#1102)

* Add Google Cloud SDK

* Add Validate-GoogleCloudSDK.ps1 script
This commit is contained in:
Aleksandr Chebotov
2020-06-24 11:37:36 +03:00
committed by GitHub
parent f342a7de2d
commit 4c34ad64df
6 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
################################################################################
## File: Install-GoogleCloudSDK.ps1
## Desc: Install Google Cloud SDK
################################################################################
# https://cloud.google.com/sdk/docs/downloads-interactive
$googleCloudSDKInstaller = "https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe"
$argumentList = @("/S", "/allusers", "/noreporting")
Install-Binary -Url $googleCloudSDKInstaller -Name "GoogleCloudSDKInstaller.exe" -ArgumentList $argumentList

View File

@@ -0,0 +1,19 @@
################################################################################
## File: Validate-GoogleCloudSDK.ps1
## Desc: Validate Install Google Cloud SDK for Windows
################################################################################
# Simple validation gcloud, gsutil, and bq command line tools
$validateTools = @("bq", "gcloud", "gsutil")
foreach($tool in $validateTools)
{
if (Get-Command -Name $tool)
{
Write-Host "$tool on path"
}
else
{
Write-Host "$tool is not on path"
exit 1
}
}