lxc 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -2
- data/lib/lxc.rb +0 -1
- data/lib/lxc/container.rb +4 -3
- data/lib/lxc/version.rb +1 -1
- data/lxc.gemspec +1 -0
- metadata +24 -2
data/Gemfile
CHANGED
data/lib/lxc.rb
CHANGED
data/lib/lxc/container.rb
CHANGED
@@ -239,14 +239,15 @@ class LXC
|
|
239
239
|
# The timeout only works when using remote control via SSH and will orphan
|
240
240
|
# the process ('lxc-wait') on the remote host.
|
241
241
|
#
|
242
|
-
# @param [Array] states
|
243
|
-
# for
|
242
|
+
# @param [Symbol,Array] states A single symbol or an array of symbols
|
243
|
+
# representing container states for which we will wait for the container
|
244
|
+
# to change state to.
|
244
245
|
# @param [Integer] timeout How long in seconds we will wait before the
|
245
246
|
# operation times out.
|
246
247
|
# @return [Boolean] Returns true of the state change happened, false
|
247
248
|
# otherwise.
|
248
249
|
def wait(states, timeout=60)
|
249
|
-
state_arg = states.map do |state|
|
250
|
+
state_arg = [states].flatten.map do |state|
|
250
251
|
state.to_s.upcase.strip
|
251
252
|
end.join('|')
|
252
253
|
|
data/lib/lxc/version.rb
CHANGED
data/lxc.gemspec
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.1.
|
4
|
+
version: 0.1.6
|
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-
|
12
|
+
date: 2013-05-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ztk
|
@@ -123,6 +123,22 @@ dependencies:
|
|
123
123
|
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: coveralls
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
126
142
|
description: An interface for controlling local or remote Linux Containers (LXC)
|
127
143
|
email:
|
128
144
|
- zachary@jovelabs.com
|
@@ -180,12 +196,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
196
|
- - ! '>='
|
181
197
|
- !ruby/object:Gem::Version
|
182
198
|
version: '0'
|
199
|
+
segments:
|
200
|
+
- 0
|
201
|
+
hash: -3538558972158551825
|
183
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
203
|
none: false
|
185
204
|
requirements:
|
186
205
|
- - ! '>='
|
187
206
|
- !ruby/object:Gem::Version
|
188
207
|
version: '0'
|
208
|
+
segments:
|
209
|
+
- 0
|
210
|
+
hash: -3538558972158551825
|
189
211
|
requirements: []
|
190
212
|
rubyforge_project:
|
191
213
|
rubygems_version: 1.8.25
|