openvz 1.4 → 1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/openvz/container.rb +16 -0
- data/lib/openvz.rb +1 -1
- data/openvz.gemspec +2 -2
- metadata +5 -5
data/lib/openvz/container.rb
CHANGED
@@ -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
data/openvz.gemspec
CHANGED
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:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: "1.
|
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:
|
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.
|
85
|
+
rubygems_version: 1.8.21
|
86
86
|
signing_key:
|
87
87
|
specification_version: 3
|
88
88
|
summary: OpenVZ API
|