cookbooks/mu-tools/recipes/gcloud.rb in cloud-mu-2.0.0.pre.alpha7 vs cookbooks/mu-tools/recipes/gcloud.rb in cloud-mu-2.0.0.pre.alpha8

- old
+ new

@@ -68,11 +68,11 @@ CLOUDSDK_PYTHON=/usr/bin/python2.7 ./google-cloud-sdk/install.sh -q # CLOUDSDK_PYTHON=/usr/bin/python2.7 sh #{Chef::Config[:file_cache_path]}/gcloud-cli.sh --install-dir=/opt --disable-prompts EOH notifies :create, "remote_file[#{Chef::Config[:file_cache_path]}/gcloud-cli.sh]", :before notifies :create, "remote_file[#{Chef::Config[:file_cache_path]}/gcloud-cli.tar.gz]", :before - not_if { ::File.exists?("/opt/google-cloud-sdk/bin/gcloud") } + not_if { ::File.exist?("/opt/google-cloud-sdk/bin/gcloud") } end link "/etc/bash_completion.d/gcloud" do to "/opt/google-cloud-sdk/completion.bash.inc" end link "/etc/profile.d/gcloud.sh" do @@ -89,10 +89,10 @@ export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - sudo apt-get update EOH - not_if { ::File.exists?("/etc/apt/sources.list.d/google-cloud-sdk.list") } + not_if { ::File.exist?("/etc/apt/sources.list.d/google-cloud-sdk.list") } end package "google-cloud-sdk" else end