2015-12-18 09:15:28 +08:00
|
|
|
cask 'google-cloud-sdk' do
|
2014-11-11 10:27:54 +08:00
|
|
|
version :latest
|
|
|
|
sha256 :no_check
|
2015-09-04 21:13:13 +08:00
|
|
|
|
2014-11-11 10:27:54 +08:00
|
|
|
url 'https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz'
|
2015-01-06 11:06:19 +08:00
|
|
|
name 'Google Cloud SDK'
|
2014-11-11 10:27:54 +08:00
|
|
|
homepage 'https://cloud.google.com/sdk/'
|
|
|
|
license :apache
|
2015-09-04 21:13:13 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
installer script: 'google-cloud-sdk/install.sh',
|
|
|
|
args: %w[--usage-reporting false --bash-completion false --path-update false --rc-path false],
|
|
|
|
sudo: false
|
2015-05-27 01:37:36 +08:00
|
|
|
binary 'google-cloud-sdk/bin/bq'
|
|
|
|
binary 'google-cloud-sdk/bin/gcloud'
|
2016-01-18 09:27:20 +08:00
|
|
|
binary 'google-cloud-sdk/bin/git-credential-gcloud.sh', target: 'git-credential-gcloud'
|
2015-05-27 01:37:36 +08:00
|
|
|
binary 'google-cloud-sdk/bin/gsutil'
|
2015-09-04 21:13:13 +08:00
|
|
|
|
2014-11-11 10:27:54 +08:00
|
|
|
caveats do
|
2014-12-11 00:46:07 +08:00
|
|
|
"#{token} is installed at #{staged_path}/#{token}. Add your profile:
|
2014-11-11 10:27:54 +08:00
|
|
|
|
|
|
|
for bash users
|
2014-12-11 00:46:07 +08:00
|
|
|
source '#{staged_path}/#{token}/path.bash.inc'
|
|
|
|
source '#{staged_path}/#{token}/completion.bash.inc'
|
2014-11-11 10:27:54 +08:00
|
|
|
|
|
|
|
for zsh users
|
2014-12-11 00:46:07 +08:00
|
|
|
source '#{staged_path}/#{token}/path.zsh.inc'
|
2015-03-09 20:27:28 +08:00
|
|
|
source '#{staged_path}/#{token}/completion.zsh.inc'
|
|
|
|
|
|
|
|
for fish users
|
|
|
|
set fish_user_paths #{staged_path}/#{token}/bin
|
|
|
|
set -x MANPATH #{staged_path}/#{token}/help/man /usr/local/share/man /usr/share/man /opt/x11/share/man
|
|
|
|
|
|
|
|
Run fish_update_completions to generate completions for fish based on the man pages"
|
2014-11-11 10:27:54 +08:00
|
|
|
end
|
|
|
|
end
|