lxc 0.2.4 → 0.2.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.
- data/lib/lxc/container.rb +16 -7
- data/lib/lxc/version.rb +1 -1
- metadata +4 -4
data/lib/lxc/container.rb
CHANGED
@@ -94,7 +94,7 @@ class LXC
|
|
94
94
|
# Runs the "lxc-create" command.
|
95
95
|
#
|
96
96
|
# @param [Array] args Additional command-line arguments.
|
97
|
-
# @return [
|
97
|
+
# @return [Array<String>] Lines of output from the executed command.
|
98
98
|
def create(*args)
|
99
99
|
self.exec("lxc-create", *args)
|
100
100
|
end
|
@@ -106,7 +106,7 @@ class LXC
|
|
106
106
|
# the 'lxc-destroy' man page for more details.
|
107
107
|
#
|
108
108
|
# @param [Array] args Additional command-line arguments.
|
109
|
-
# @return [
|
109
|
+
# @return [Array<String>] Lines of output from the executed command.
|
110
110
|
def destroy(*args)
|
111
111
|
self.exec("lxc-destroy", *args)
|
112
112
|
end
|
@@ -116,17 +116,26 @@ class LXC
|
|
116
116
|
# Runs the "lxc-start" command with the "--daemon" flag.
|
117
117
|
#
|
118
118
|
# @param [Array] args Additional command-line arguments.
|
119
|
-
# @return [
|
119
|
+
# @return [Array<String>] Lines of output from the executed command.
|
120
120
|
def start(*args)
|
121
121
|
self.exec("lxc-start", "--daemon", *args)
|
122
122
|
end
|
123
123
|
|
124
|
+
# Start an ephemeral copy of the container
|
125
|
+
#
|
126
|
+
# Runs the "lxc-start-ephemeral" command.
|
127
|
+
# @return [Array<String>] Lines of output from the executed command.
|
128
|
+
# @see lxc-start-ephemeral
|
129
|
+
def start_ephemeral(*args)
|
130
|
+
self.exec("lxc-start-ephemeral", *args)
|
131
|
+
end
|
132
|
+
|
124
133
|
# Stop the container
|
125
134
|
#
|
126
135
|
# Runs the "lxc-stop" command.
|
127
136
|
#
|
128
137
|
# @param [Array] args Additional command-line arguments.
|
129
|
-
# @return [
|
138
|
+
# @return [Array<String>] Lines of output from the executed command.
|
130
139
|
def stop(*args)
|
131
140
|
self.exec("lxc-stop", *args)
|
132
141
|
end
|
@@ -143,7 +152,7 @@ class LXC
|
|
143
152
|
# Runs the "lxc-freeze" command.
|
144
153
|
#
|
145
154
|
# @param [Array] args Additional command-line arguments.
|
146
|
-
# @return [
|
155
|
+
# @return [Array<String>] Lines of output from the executed command.
|
147
156
|
def freeze(*args)
|
148
157
|
self.exec("lxc-freeze", *args)
|
149
158
|
end
|
@@ -153,7 +162,7 @@ class LXC
|
|
153
162
|
# Runs the "lxc-unfreeze" command.
|
154
163
|
#
|
155
164
|
# @param [Array] args Additional command-line arguments.
|
156
|
-
# @return [
|
165
|
+
# @return [Array<String>] Lines of output from the executed command.
|
157
166
|
def unfreeze(*args)
|
158
167
|
self.exec("lxc-unfreeze", *args)
|
159
168
|
end
|
@@ -163,7 +172,7 @@ class LXC
|
|
163
172
|
# Runs the "lxc-info" command.
|
164
173
|
#
|
165
174
|
# @param [Array] args Additional command-line arguments.
|
166
|
-
# @return [Array] Lines of output from the executed command.
|
175
|
+
# @return [Array<String>] Lines of output from the executed command.
|
167
176
|
def info(*args)
|
168
177
|
self.exec("lxc-info", *args).split("\n").uniq.flatten
|
169
178
|
end
|
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.5
|
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-17 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: 966588682821511155
|
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: 966588682821511155
|
229
229
|
requirements: []
|
230
230
|
rubyforge_project:
|
231
231
|
rubygems_version: 1.8.25
|