vmonkey 0.14.0 → 0.15.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: 08c92c76411c60887f7a0aa6e4f40714768e2712
4
- data.tar.gz: c8a92fcc5859c32e216eb938b2e8a3d1ff8d22dc
3
+ metadata.gz: ccc087e18e260aa80c699d3ec8d8986fff6f7b4d
4
+ data.tar.gz: cd5cbdea21af509498dbc7a5c8cc9397eed47fac
5
5
  SHA512:
6
- metadata.gz: c86b7e8de64dade74be96a1105f418ee0b906a694183345ff9cec6bb2a59c6dd32afbd6539ef356074820f6fa4f6f0450c3e799cf4197e8abc832b3e7f34f7a5
7
- data.tar.gz: f4021025d708a9bf5b9afb8e034327211da08f756ca6bfb29eac1ccdd9b2f4d3d8dd1aa21d8ee40bf3b392f04e3e9b71a7ba63c0cad3ba9688316a22a5196379
6
+ metadata.gz: 651dbfd70fbcbba45735da1235b18f50f18288a911087bf65e954cabbe494e385baad30ff283a0a4bc93e9297e1cc00ca9359bd8420053ba968f79eae3523fe3
7
+ data.tar.gz: 95cee91a5e00a82ca3e764b00bc242ae5b9d5b2aac7223f040f54f61b932c3058f9b22d25e97a56619d8eaea49dda111808ab2a51b6de45e9c9e45e1fab3afdd
@@ -1,3 +1,3 @@
1
1
  module Vmonkey
2
- VERSION = '0.14.0'
2
+ VERSION = '0.15.0'
3
3
  end
@@ -1,3 +1,5 @@
1
+ using VMonkey unless RUBY_VERSION.split('.')[0] == '1'
2
+
1
3
  class RbVmomi::VIM::Folder
2
4
  def vm_pool
3
5
  monkey.cluster.resourcePool
@@ -41,6 +43,10 @@ class RbVmomi::VIM::Folder
41
43
  self.traverse path, RbVmomi::VIM::Folder, true
42
44
  end
43
45
 
46
+ def mk_parent_folder(path)
47
+ mk_folder path.parent unless path.parent.to_s.empty?
48
+ end
49
+
44
50
  def destroy
45
51
  self.Destroy_Task.wait_for_completion
46
52
  end
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.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dupras