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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 544d79414efddc64a4491048b9f81f54426589ba
4
- data.tar.gz: 331014025327add61f5c7403f3dae5544ba5e168
3
+ metadata.gz: a2b110fd086638f540bd6bed58394f077fe0b2a4
4
+ data.tar.gz: 0c2fce73a638b5523b395fcba0889bcc748274f4
5
5
  SHA512:
6
- metadata.gz: f565182599580cac487e1942dc84ed8db08b0dc969e05a18d5eab61d4ed10fddb333cac015b84a5b62e55222951d77dd356e94927c0347bd41411daa7722ff84
7
- data.tar.gz: d6722d7dc27931945896067eaef4f84c259afaaa3b63e21e177bfbca52cf7100b74a363c26a4fb126e5dd10545faa2e9e7e84d75d1e10007a5aed62adb1cd8c3
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
@@ -1,3 +1,3 @@
1
1
  module Vmonkey
2
- VERSION = '0.18.0'
2
+ VERSION = '0.19.0'
3
3
  end
@@ -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
@@ -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.18.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 00:00:00.000000000 Z
13
+ date: 2015-02-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri