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 +4 -4
- data/lib/vmonkey/version.rb +1 -1
- data/lib/vmonkey/vim/Folder.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccc087e18e260aa80c699d3ec8d8986fff6f7b4d
|
4
|
+
data.tar.gz: cd5cbdea21af509498dbc7a5c8cc9397eed47fac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 651dbfd70fbcbba45735da1235b18f50f18288a911087bf65e954cabbe494e385baad30ff283a0a4bc93e9297e1cc00ca9359bd8420053ba968f79eae3523fe3
|
7
|
+
data.tar.gz: 95cee91a5e00a82ca3e764b00bc242ae5b9d5b2aac7223f040f54f61b932c3058f9b22d25e97a56619d8eaea49dda111808ab2a51b6de45e9c9e45e1fab3afdd
|
data/lib/vmonkey/version.rb
CHANGED
data/lib/vmonkey/vim/Folder.rb
CHANGED
@@ -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
|