kitchen-sfmc-google 1.6.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/driver/sfmc_google.rb +11 -0
- data/lib/kitchen/driver/sfmc_google_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb0dc7c307699c736d8df2220d95ac5d87d5575e
|
4
|
+
data.tar.gz: dbaa460188b985694980b9b783705a4319b1be91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edd04d01fa4e896ddcb1e329cb0d411e3fc0ecd31eda407d31911652db876978f744910ee4f36cf84dbf035e055b760cbca82bc667b4ba6bcd062e3428b39629
|
7
|
+
data.tar.gz: d42f2d11aebb0dc7e3657c36bec7b434defb7db9c0025eb7cb6d53542fa0cbc0cf1dfa848c9cd6a2c5aa3ad84905b964487b232199a952b7a764f56f12a0f1b1
|
@@ -62,6 +62,7 @@ module Kitchen
|
|
62
62
|
default_config :zone, nil
|
63
63
|
|
64
64
|
default_config :custom_metadata, nil
|
65
|
+
default_config :custom_metadata_from_disk, nil
|
65
66
|
default_config :autodelete_disk, true
|
66
67
|
default_config :disk_size, 10
|
67
68
|
default_config :disk_type, "pd-standard"
|
@@ -386,6 +387,16 @@ module Kitchen
|
|
386
387
|
info("Using custom metadata <#{config[:custom_metadata].inspect}>.")
|
387
388
|
end
|
388
389
|
|
390
|
+
if config[:custom_metadata_from_disk]
|
391
|
+
config[:custom_metadata_from_disk].each do |key, value|
|
392
|
+
file_contents = File.read(value)
|
393
|
+
info("Getting file contents for #{key} metadata from #{value}")
|
394
|
+
metadata = {
|
395
|
+
key.to_s => file_contents.to_s,
|
396
|
+
}
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
389
400
|
Google::Apis::ComputeV1::Metadata.new.tap do |metadata_obj|
|
390
401
|
metadata_obj.items = metadata.each_with_object([]) do |(k, v), memo|
|
391
402
|
memo << Google::Apis::ComputeV1::Metadata::Item.new.tap do |item|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-sfmc-google
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Leonard
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.6.8
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Kitchen::Driver::Gce
|