kitchen-hyperv 0.4.0 → 0.4.1

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: bc2c3434848b858549e45714e5828f52182159f5
4
- data.tar.gz: 79cb0919ca938194aca1446c14fa899a01b4a141
3
+ metadata.gz: 3e919e00b790582d9fcb8f8ec5d82107d3c78678
4
+ data.tar.gz: 4c37d0721342ce5c3a6cbf130b1f01e478c3c960
5
5
  SHA512:
6
- metadata.gz: c67ce7d0ce7789ccfea65bc7cff15552cde8bc8f6902d2845e36ed0748d56756147ba869f76de36b3a0df8261e9e282c0395a88724119b3c3aca1d6992bc8333
7
- data.tar.gz: 2ed67e5ae88901c540d6371670b8dea20df6cf1a093af90ba26de0431b9b47046d15ae1795d6275487e6f89fba009b8e8c7fb3c8b5037f35473ddb2b04bf2b9d
6
+ metadata.gz: 6121d3bdd601993baa94ed9f42545c7044527e4f8a6483ba60c9c4a422aa6bf1acfa6250ae4f4ade938d43a20c62f091102291989d39b1fd49d4f5dfd134cb9b
7
+ data.tar.gz: 3624ac9206839cec7ada2f8e6c97404773563e6e71e36cf395678ae9acba844ff8dc8733b8dff1ee640a6d8f57d1021865508d0b9a12fd4f676e661ce0e84552
@@ -52,6 +52,7 @@ module Kitchen
52
52
  default_config :enable_guest_services
53
53
  default_config :vm_note
54
54
  default_config :resize_vhd
55
+ default_config :additional_disks
55
56
  default_config :vm_generation, 1
56
57
  default_config :disable_secureboot, false
57
58
  default_config :disk_type do |driver|
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Kitchen
19
19
  module Driver
20
- HYPERV_VERSION = '0.4.0'.freeze
20
+ HYPERV_VERSION = '0.4.1'.freeze
21
21
  end
22
22
  end
@@ -123,12 +123,19 @@ module Kitchen
123
123
  DynamicMemoryMaxBytes = #{config[:dynamic_memory_max_bytes]}
124
124
  boot_iso_path = "#{boot_iso_path}"
125
125
  EnableGuestServices = "#{config[:enable_guest_services]}"
126
- AdditionalDisks = @("#{@additional_disk_objects.join('","') || ''}")
126
+ #{additional_disks}
127
127
  }
128
128
  New-KitchenVM @NewVMParams | ConvertTo-Json
129
129
  NEWVM
130
130
  end
131
131
 
132
+ def additional_disks
133
+ return if config[:additional_disks].nil?
134
+ <<-EOH
135
+ AdditionalDisks = @("#{@additional_disk_objects.join('","')}")
136
+ EOH
137
+ end
138
+
132
139
  def vm_details_ps
133
140
  <<-DETAILS
134
141
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-hyperv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-24 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler