openvz 1.4 → 1.5

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.
@@ -92,6 +92,22 @@ module OpenVZ
92
92
  end
93
93
 
94
94
 
95
+ # Checkpoint the container
96
+ #
97
+ def checkpoint(snapshot_path)
98
+ cmd = "#{@vzctl} chkpnt #{@ctid} --dumpfile #{snapshot_path}"
99
+ execute(cmd)
100
+ end
101
+
102
+
103
+ # Restore a checkpoint
104
+ #
105
+ def restore(snapshot_path)
106
+ cmd = "#{@vzctl} restore #{@ctid} --dumpfile #{snapshot_path}"
107
+ execute(cmd)
108
+ end
109
+
110
+
95
111
  # Update one or multiple Container properties and keep the configration
96
112
  # object up to date
97
113
  #
data/lib/openvz.rb CHANGED
@@ -11,7 +11,7 @@ module OpenVZ
11
11
  autoload :Util, "openvz/util"
12
12
  autoload :ConfigHash, "openvz/confighash"
13
13
 
14
- VERSION = "1.4"
14
+ VERSION = "1.5"
15
15
 
16
16
  def self.version
17
17
  VERSION
data/openvz.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'openvz'
3
- s.version = '1.4'
4
- s.date = '2011-10-26'
3
+ s.version = '1.5'
4
+ s.date = '2012-04-30'
5
5
  s.authors = 'Stefan Schlesinger'
6
6
  s.email = 'sts@ono.at'
7
7
  s.homepage = 'http://github.com/sts/ruby-openvz'
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 4
9
- version: "1.4"
8
+ - 5
9
+ version: "1.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stefan Schlesinger
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-10-26 00:00:00 Z
17
+ date: 2012-04-30 00:00:00 Z
18
18
  dependencies: []
19
19
 
20
20
  description: |-
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  requirements: []
83
83
 
84
84
  rubyforge_project:
85
- rubygems_version: 1.8.7
85
+ rubygems_version: 1.8.21
86
86
  signing_key:
87
87
  specification_version: 3
88
88
  summary: OpenVZ API