vmonkey 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +7 -1
- data/lib/vmonkey/version.rb +1 -1
- data/lib/vmonkey/vim/VirtualMachine.rb +2 -1
- data/spec/virtualmachine_spec.rb +3 -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: a2b110fd086638f540bd6bed58394f077fe0b2a4
|
4
|
+
data.tar.gz: 0c2fce73a638b5523b395fcba0889bcc748274f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70f58bc71084e7c7c8b47408b39a2f2a4d4dbdc72633999b155171d704431168fce826f7550ecf6f2b74dd469239cf5c58586b29c68e21e7381a70160422a4e3
|
7
|
+
data.tar.gz: 5be6a3b6408f01c3f02d7de89fa5a6f44e248a644c042386bc2ab2b95d098e1377bc0dde96363a9deb4728064a9d9c591a7ad2fda4435471ea1d9adebabec91f
|
data/Rakefile
CHANGED
@@ -2,4 +2,10 @@ require 'bundler/gem_tasks'
|
|
2
2
|
require 'rspec/core/rake_task'
|
3
3
|
|
4
4
|
ENV['VMONKEY_YML'] ||= File.expand_path(File.join(File.dirname(__FILE__), 'spec', '.vmonkey'))
|
5
|
-
RSpec::Core::RakeTask.new(:spec)
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
|
+
|
7
|
+
desc "run only virtual machine specs"
|
8
|
+
RSpec::Core::RakeTask.new('run_vm_specs') do |t|
|
9
|
+
tests = ['spec/virtualmachine_spec*']
|
10
|
+
t.pattern = tests
|
11
|
+
end
|
data/lib/vmonkey/version.rb
CHANGED
@@ -21,7 +21,7 @@ class RbVmomi::VIM::VirtualMachine
|
|
21
21
|
def clone_to!(path)
|
22
22
|
dest_vm = monkey.vm(path)
|
23
23
|
dest_vm.destroy if dest_vm
|
24
|
-
|
24
|
+
|
25
25
|
monkey.folder('/').mk_folder(path.parent) unless path.parent.to_s.empty?
|
26
26
|
|
27
27
|
clone_to(path)
|
@@ -271,6 +271,7 @@ class RbVmomi::VIM::VirtualMachine
|
|
271
271
|
clone_spec.config.annotation = opts[:config][:annotation]
|
272
272
|
clone_spec.config.numCPUs = opts[:config][:num_cpus]
|
273
273
|
clone_spec.config.memoryMB = opts[:config][:memory_mb]
|
274
|
+
clone_spec.config.files = opts[:config][:files]
|
274
275
|
|
275
276
|
clone_spec
|
276
277
|
end
|
data/spec/virtualmachine_spec.rb
CHANGED
@@ -44,7 +44,8 @@ describe RbVmomi::VIM::VirtualMachine do
|
|
44
44
|
config: {
|
45
45
|
annotation: 'an annotation',
|
46
46
|
num_cpus: 3,
|
47
|
-
memory_mb: 1024
|
47
|
+
memory_mb: 1024,
|
48
|
+
files: { :vmPathName => "#{VM_SPEC_OPTS[:datastore]} vmonkey-test" }
|
48
49
|
})
|
49
50
|
end
|
50
51
|
|
@@ -52,6 +53,7 @@ describe RbVmomi::VIM::VirtualMachine do
|
|
52
53
|
it { expect(subject[:spec].config.annotation).to eq 'an annotation' }
|
53
54
|
it { expect(subject[:spec].config.numCPUs).to eq 3 }
|
54
55
|
it { expect(subject[:spec].config.memoryMB).to eq 1024 }
|
56
|
+
it { expect(subject[:spec].config.files[:vmPathName]). to eq "#{VM_SPEC_OPTS[:datastore]} vmonkey-test" }
|
55
57
|
it { expect(subject[:spec].config.deviceChange.length).to be 0}
|
56
58
|
end
|
57
59
|
|
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.19.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-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nokogiri
|