lxc 0.2.6 → 0.2.7
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/lxc/container.rb +11 -0
- data/lib/lxc/version.rb +1 -1
- metadata +4 -4
data/lib/lxc/container.rb
CHANGED
@@ -124,12 +124,23 @@ class LXC
|
|
124
124
|
# Start an ephemeral copy of the container
|
125
125
|
#
|
126
126
|
# Runs the "lxc-start-ephemeral" command.
|
127
|
+
#
|
127
128
|
# @return [Array<String>] Lines of output from the executed command.
|
128
129
|
# @see lxc-start-ephemeral
|
129
130
|
def start_ephemeral(*args)
|
130
131
|
self.lxc.exec("lxc-start-ephemeral", *args)
|
131
132
|
end
|
132
133
|
|
134
|
+
# Clone the container
|
135
|
+
#
|
136
|
+
# Runs the "lxc-clone" command.
|
137
|
+
#
|
138
|
+
# @return [Array<String>] Lines of output from the executed command.
|
139
|
+
# @see lxc-clone
|
140
|
+
def clone(*args)
|
141
|
+
self.lxc.exec("lxc-clone", *args)
|
142
|
+
end
|
143
|
+
|
133
144
|
# Stop the container
|
134
145
|
#
|
135
146
|
# Runs the "lxc-stop" command.
|
data/lib/lxc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lxc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ztk
|
@@ -216,7 +216,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
segments:
|
218
218
|
- 0
|
219
|
-
hash: -
|
219
|
+
hash: -1303503638862772355
|
220
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
221
|
none: false
|
222
222
|
requirements:
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
segments:
|
227
227
|
- 0
|
228
|
-
hash: -
|
228
|
+
hash: -1303503638862772355
|
229
229
|
requirements: []
|
230
230
|
rubyforge_project:
|
231
231
|
rubygems_version: 1.8.25
|