opennebula 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/opennebula.rb CHANGED
@@ -54,5 +54,5 @@ require 'opennebula/system'
54
54
  module OpenNebula
55
55
 
56
56
  # OpenNebula version
57
- VERSION = '4.0.0'
57
+ VERSION = '4.0.1'
58
58
  end
@@ -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: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 0
9
- - 0
10
- version: 4.0.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-07 00:00:00 Z
18
+ date: 2013-05-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: nokogiri