opennebula 4.0.0 → 4.0.1
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.
- data/lib/opennebula.rb +1 -1
- data/lib/opennebula/virtual_machine.rb +14 -3
- metadata +4 -4
data/lib/opennebula.rb
CHANGED
@@ -43,7 +43,8 @@ module OpenNebula
|
|
43
43
|
:snapshotdelete => "vm.snapshotdelete",
|
44
44
|
:attachnic => "vm.attachnic",
|
45
45
|
:detachnic => "vm.detachnic",
|
46
|
-
:resize => "vm.resize"
|
46
|
+
:resize => "vm.resize",
|
47
|
+
:recover => "vm.recover"
|
47
48
|
}
|
48
49
|
|
49
50
|
VM_STATE=%w{INIT PENDING HOLD ACTIVE STOPPED SUSPENDED DONE FAILED
|
@@ -524,9 +525,19 @@ module OpenNebula
|
|
524
525
|
return call(VM_METHODS[:snapshotdelete], @pe_id, snap_id)
|
525
526
|
end
|
526
527
|
|
527
|
-
|
528
|
+
# Recovers an ACTIVE VM
|
529
|
+
#
|
530
|
+
# @param result [Boolean] Recover with success (true) or failure (false)
|
531
|
+
# @param result [info] Additional information needed to recover the VM
|
532
|
+
# @return [nil, OpenNebula::Error] nil in case of success, Error
|
533
|
+
# otherwise
|
534
|
+
def recover(result)
|
535
|
+
return call(VM_METHODS[:recover], @pe_id, result)
|
536
|
+
end
|
537
|
+
|
538
|
+
########################################################################
|
528
539
|
# Helpers to get VirtualMachine information
|
529
|
-
|
540
|
+
########################################################################
|
530
541
|
|
531
542
|
# Returns the VM state of the VirtualMachine (numeric value)
|
532
543
|
def state
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opennebula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 4.0.
|
9
|
+
- 1
|
10
|
+
version: 4.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- OpenNebula
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-05-
|
18
|
+
date: 2013-05-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: nokogiri
|