kitchen-hyperv 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +0 -2
- data/lib/kitchen/driver/hyperv.rb +1 -6
- data/lib/kitchen/driver/hyperv_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: e4e642af67fa6dbf7dd7ef08ef7606cf98d1b9ad
|
4
|
+
data.tar.gz: e46fe0ffef97676104b6df51e1a0b58cf039317e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ed858d108232d6f6924576ed1303468f0bb6a0f9a420956d602a6871ba04dccfbce92a3c757a3cb26fb274efffe4abf4e4ab86abc4d62bb16427a95dde45dbe
|
7
|
+
data.tar.gz: cf81b9412cdf7a56cbab5cb4c83fbf3c8223c4098e8054ee755a1f3fc8b286f8f2a556e3b5839a36deb332b3b800d5dc626b00b2ca8e2456b4be79c812fbd331
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -35,8 +35,6 @@ driver:
|
|
35
35
|
* amount of RAM to assign to each virtual machine. Defaults to 536,870,912.
|
36
36
|
* processor_count
|
37
37
|
* number of virtual processors to assign to each virtual machine. Defaults to 2.
|
38
|
-
* username
|
39
|
-
* Username to log into the virtual machine. Specify a local account, without a leading '.\'. Defaults to Administrator
|
40
38
|
* ip_address
|
41
39
|
* IP address for the virtual machine. If the VM is not on a network with DHCP, this can be used to assign an IP that can be reached from the host machine.
|
42
40
|
* vm_switch
|
@@ -38,9 +38,6 @@ module Kitchen
|
|
38
38
|
default_config :parent_vhd_name
|
39
39
|
default_config :memory_startup_bytes, 536_870_912
|
40
40
|
default_config :processor_count, 2
|
41
|
-
default_config :password
|
42
|
-
# because test-kitchen defaults to the wrong value
|
43
|
-
default_config :username, 'Administrator'
|
44
41
|
default_config :ip_address
|
45
42
|
default_config :vm_switch
|
46
43
|
|
@@ -87,7 +84,7 @@ module Kitchen
|
|
87
84
|
|
88
85
|
def vm_exists
|
89
86
|
info('Checking for existing virtual machine.')
|
90
|
-
return false unless @state.key?(:id)
|
87
|
+
return false unless @state.key?(:id) && !@state[:id].nil?
|
91
88
|
existing_vm = run_ps ensure_vm_running_ps
|
92
89
|
info("Found an exising VM with an ID: #{existing_vm['Id']}")
|
93
90
|
return true unless existing_vm.nil? || existing_vm['Id'].nil?
|
@@ -126,8 +123,6 @@ module Kitchen
|
|
126
123
|
@state[:id] = @vm['Id']
|
127
124
|
@state[:hostname] = @vm['IpAddress']
|
128
125
|
@state[:vm_name] = @vm['Name']
|
129
|
-
@state[:password] = config[:password]
|
130
|
-
@state[:username] = config[:username]
|
131
126
|
end
|
132
127
|
|
133
128
|
def vm_details
|
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.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Murawski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|