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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 555c0aee47384f2aeda075df1d91a5857f469be6
4
- data.tar.gz: 508070d0f6cf3c174ce7c340cee530062fe3cdcc
3
+ metadata.gz: bb0dc7c307699c736d8df2220d95ac5d87d5575e
4
+ data.tar.gz: dbaa460188b985694980b9b783705a4319b1be91
5
5
  SHA512:
6
- metadata.gz: df156b494eaa220333bac9534931d44521feafb799629c9a1b3636d657659937f2a09ae528818c3a8ced8a175c7991cbe502515d98d0ca3db35aab02b56bc093
7
- data.tar.gz: ae63fe8cb23453fe207f0afa50042f938ead1b1d7b63e03d21b022a0d5db5ede0d0149a9d6c5683178566cac5266fb24df8560b581e4a993d9c9dbc3618464b5
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|
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Kitchen
20
20
  module Driver
21
- SFMC_GOOGLE_VERSION = "1.6.0".freeze
21
+ SFMC_GOOGLE_VERSION = "1.8.0".freeze
22
22
  end
23
23
  end
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.6.0
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.4.5.2
168
+ rubygems_version: 2.6.8
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Kitchen::Driver::Gce