terraspace_plugin_google 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/terraspace_plugin_google/clients.rb +11 -0
- data/lib/terraspace_plugin_google/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d49aa4dec651de8b67872942c9f237b38e123263985f6d6d18151b46ffe14b5
|
|
4
|
+
data.tar.gz: '04508bd3f5f2336e0d2bf3cb99943809961e0d5807eef3afbdbf311e769540ee'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fb9e68077f452fdbb96d00ebdcaac6b67bed251752c4c388be97cfb9e48568f48d73b4a02ee7d1293e3872bbbbc7d4e400bbfa2135c88a5b54f3b9a90eb6c99
|
|
7
|
+
data.tar.gz: da5a5b2f44d20182d9ea0916f144f8b0703b2f4d774bbc9658af8078ccf802cd0251eaf4f7515b46c4f3974af1eb4b297135ff5b671171769996e36e1d52ca3b
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
|
6
|
+
## [0.3.5] - 2022-01-11
|
|
7
|
+
- [#11](https://github.com/boltops-tools/terraspace_provider_google/pull/11) set GOOGLE_CLOUD_PROJECT while keeping backwards compatibility
|
|
8
|
+
|
|
6
9
|
## [0.3.4] - 2022-01-11
|
|
7
10
|
- [#10](https://github.com/boltops-tools/terraspace_provider_google/pull/10) set GOOGLE_CLOUD_PROJECT while keeping backwards compatibility
|
|
8
11
|
|
|
@@ -6,6 +6,17 @@ module TerraspacePluginGoogle
|
|
|
6
6
|
module Clients
|
|
7
7
|
extend Memoist
|
|
8
8
|
|
|
9
|
+
def initialize(*)
|
|
10
|
+
# So google sdk newer versions use GOOGLE_CLOUD_PROJECT instead of GOOGLE_PROJECT
|
|
11
|
+
# Found out between google-cloud-storage-1.35.0 and google-cloud-storage-1.28.0
|
|
12
|
+
# Though it seems like an library underneath that with the change.
|
|
13
|
+
# Keeping backwards compatibility to not create breakage users who already have GOOGLE_PROJECT
|
|
14
|
+
# But then setting GOOGLE_CLOUD_PROJECT so it works with the SDK.
|
|
15
|
+
# For users, who set GOOGLE_CLOUD_PROJECT that will work also.
|
|
16
|
+
ENV['GOOGLE_CLOUD_PROJECT'] ||= ENV['GOOGLE_PROJECT']
|
|
17
|
+
super
|
|
18
|
+
end
|
|
19
|
+
|
|
9
20
|
def secret_manager_service
|
|
10
21
|
Google::Cloud::SecretManager.secret_manager_service
|
|
11
22
|
end
|