vmonkey 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vmonkey/version.rb +1 -1
- data/lib/vmonkey/vim/VirtualMachine.rb +4 -1
- data/spec/virtualmachine_spec.rb +12 -0
- 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: db1974e7ea19c2601f95522a530c92ccbc99c467
|
|
4
|
+
data.tar.gz: e9fc72a7657ca1527ce6d97c4349d841d66b9d00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40055176c611003390d2568ef57d641e2b87dc53b9e7c3757885dcb2f8514e6225f1167e98688886ca723b0842ea72033431f3207d58e249e705eebc2b16709b
|
|
7
|
+
data.tar.gz: e961f6b59478ff4ee2a7bbc92832fe5c4c41c0352ff5d4a3d3445ee54c5813028fd2511efbd04617e8aee045a194e7dc4a38024b53417a5d9452dacd8e0cddf7
|
data/lib/vmonkey/version.rb
CHANGED
|
@@ -259,7 +259,10 @@ class RbVmomi::VIM::VirtualMachine
|
|
|
259
259
|
opts[:config] ||= {}
|
|
260
260
|
|
|
261
261
|
clone_spec = RbVmomi::VIM.VirtualMachineCloneSpec(
|
|
262
|
-
location: RbVmomi::VIM.VirtualMachineRelocateSpec(
|
|
262
|
+
location: RbVmomi::VIM.VirtualMachineRelocateSpec({
|
|
263
|
+
pool: dest.vm_pool,
|
|
264
|
+
datastore: opts[:datastore]
|
|
265
|
+
}),
|
|
263
266
|
powerOn: false,
|
|
264
267
|
template: false
|
|
265
268
|
)
|
data/spec/virtualmachine_spec.rb
CHANGED
|
@@ -57,6 +57,18 @@ describe RbVmomi::VIM::VirtualMachine do
|
|
|
57
57
|
it { expect(subject[:spec].config.deviceChange.length).to be 0}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
context 'with datastore change' do
|
|
61
|
+
subject do
|
|
62
|
+
@params ||=
|
|
63
|
+
@template._clone_params(
|
|
64
|
+
@vm_path.basename,
|
|
65
|
+
@monkey.get(@vm_path.parent),
|
|
66
|
+
datastore: @monkey.datastore(VM_SPEC_OPTS[:datastore]))
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
it { expect(subject[:spec][:location].datastore).to_not be_nil }
|
|
70
|
+
end
|
|
71
|
+
|
|
60
72
|
context 'with deviceChange' do
|
|
61
73
|
subject do
|
|
62
74
|
@params ||=
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vmonkey
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.20.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Dupras
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2015-02-
|
|
13
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: nokogiri
|