terraspace_plugin_google 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/templates/hcl/module/main.tf +2 -2
- data/lib/templates/hcl/module/variables.tf +2 -2
- data/lib/templates/hcl/stack/main.tf +2 -2
- data/lib/templates/hcl/stack/variables.tf +2 -2
- data/lib/templates/ruby/module/main.rb +2 -2
- data/lib/templates/ruby/module/variables.rb +2 -2
- data/lib/templates/ruby/stack/variables.rb +2 -2
- data/lib/templates/test/rspec/module/test/spec/fixtures/stack/main.tf +2 -2
- data/lib/templates/test/rspec/module/test/spec/fixtures/stack/variables.tf +2 -2
- data/lib/terraspace_plugin_google/interfaces/summary.rb +4 -0
- data/lib/terraspace_plugin_google/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b210bb6190e4c84d5e1dc299d98761541bdbefdc8c68f7c81487a95586785529
|
4
|
+
data.tar.gz: 6e2a0b9fad7a7a702b143ac0c2569109c07326693b75aa5cb7c09cee820dc7f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df87fc25c96629faed3c64e193cddf5ca18d40a43564b483e2f077b2b9a9dd62adda07de6e3e0ae729456a716b2785eea3ce9d5e437a257dfdea3f05b419e5ac
|
7
|
+
data.tar.gz: 2fd58bbfb84efb5de44bbf4603efc296e53d407920a64b7739c0e052ae5c027ef8ad187606b4059b7b965c86bfc015c311ea260c244eb0aa37c831698f611ccf
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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.2.1]
|
7
|
+
- #3 update starter example template: bucket_policy_only deprecated for uniform_bucket_level_access
|
8
|
+
- edge case: graceful error when bucket doesnt exist yet
|
9
|
+
|
6
10
|
## [0.2.0]
|
7
11
|
- #2 include layer interface, update template to use expansion method
|
8
12
|
|
@@ -5,6 +5,6 @@ resource "random_pet" "this" {
|
|
5
5
|
module "bucket" {
|
6
6
|
source = "../../modules/example"
|
7
7
|
|
8
|
-
name
|
9
|
-
|
8
|
+
name = "bucket-${random_pet.this.id}"
|
9
|
+
uniform_bucket_level_access = var.uniform_bucket_level_access
|
10
10
|
}
|
@@ -5,6 +5,6 @@ resource "random_pet" "this" {
|
|
5
5
|
module "bucket" {
|
6
6
|
source = "../../modules/example"
|
7
7
|
|
8
|
-
name
|
9
|
-
|
8
|
+
name = "bucket-${random_pet.this.id}"
|
9
|
+
uniform_bucket_level_access = var.uniform_bucket_level_access
|
10
10
|
}
|
@@ -11,6 +11,10 @@ module TerraspacePluginGoogle::Interfaces
|
|
11
11
|
# interface method
|
12
12
|
def download
|
13
13
|
bucket = storage.bucket(@bucket)
|
14
|
+
unless bucket
|
15
|
+
logger.error "ERROR: bucket #{@bucket} does not exist".color(:red)
|
16
|
+
exit 1
|
17
|
+
end
|
14
18
|
bucket.files(prefix: @folder).all do |f|
|
15
19
|
file = bucket.file(f.name)
|
16
20
|
next if file.nil? # in case file has been removed since .files
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terraspace_plugin_google
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gcp_data
|