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 CHANGED
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'coveralls', :require => false
4
-
5
3
  gemspec
data/lib/lxc.rb CHANGED
@@ -165,7 +165,6 @@ class LXC
165
165
 
166
166
  arguments = Array.new
167
167
  arguments << %(sudo) if (@use_sudo == true)
168
- arguments << %(DEBIAN_FRONTEND="noninteractive")
169
168
  arguments << command
170
169
  arguments << args
171
170
  arguments = arguments.flatten.compact.join(' ')
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 An array of container states for which we will wait
243
- # for the container to change state to.
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
@@ -2,7 +2,7 @@ class LXC
2
2
 
3
3
  unless const_defined?(:VERSION)
4
4
  # LXC Gem Version
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
 
8
8
  end
data/lxc.gemspec CHANGED
@@ -44,4 +44,5 @@ Gem::Specification.new do |spec|
44
44
  spec.add_development_dependency("redcarpet")
45
45
  spec.add_development_dependency("rspec")
46
46
  spec.add_development_dependency("yard")
47
+ spec.add_development_dependency("coveralls")
47
48
  end
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.5
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-04-30 00:00:00.000000000 Z
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