lxc 0.2.0 → 0.2.1

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.
Files changed (34) hide show
  1. data/.travis.yml +5 -0
  2. data/README.md +1 -1
  3. data/Rakefile +1 -1
  4. data/bin/lxc-console +19 -0
  5. data/lib/lxc/config.rb +1 -1
  6. data/lib/lxc/container.rb +6 -1
  7. data/lib/lxc/version.rb +1 -1
  8. data/lib/lxc.rb +1 -1
  9. data/lxc.gemspec +2 -2
  10. data/spec/lxc/config_spec.rb +101 -0
  11. data/spec/lxc/container_spec.rb +94 -0
  12. data/spec/lxc_spec.rb +30 -2
  13. data/spec/spec_helper.rb +1 -1
  14. data/spec/support/fixtures/0.7.5/lxc-attach.out +1 -0
  15. data/spec/support/fixtures/0.7.5/lxc-create.out +0 -0
  16. data/spec/support/fixtures/0.7.5/lxc-destroy.out +0 -0
  17. data/spec/support/fixtures/0.7.5/lxc-freeze.out +0 -0
  18. data/spec/support/fixtures/0.7.5/lxc-ls-w-containers.out +2 -0
  19. data/spec/support/fixtures/0.7.5/lxc-restart.out +0 -0
  20. data/spec/support/fixtures/0.7.5/lxc-start.out +0 -0
  21. data/spec/support/fixtures/0.7.5/lxc-stop.out +0 -0
  22. data/spec/support/fixtures/0.7.5/lxc-unfreeze.out +0 -0
  23. data/spec/support/fixtures/0.8.0-rc2/lxc-attach.out +1 -0
  24. data/spec/support/fixtures/0.8.0-rc2/lxc-create.out +0 -0
  25. data/spec/support/fixtures/0.8.0-rc2/lxc-destroy.out +0 -0
  26. data/spec/support/fixtures/0.8.0-rc2/lxc-freeze.out +0 -0
  27. data/spec/support/fixtures/0.8.0-rc2/lxc-ls-w-containers.out +2 -0
  28. data/spec/support/fixtures/0.8.0-rc2/lxc-restart.out +0 -0
  29. data/spec/support/fixtures/0.8.0-rc2/lxc-start.out +0 -0
  30. data/spec/support/fixtures/0.8.0-rc2/lxc-stop.out +0 -0
  31. data/spec/support/fixtures/0.8.0-rc2/lxc-unfreeze.out +0 -0
  32. data/spec/support/fixtures/test-container +9 -0
  33. data/spec/support/install-lxc.sh +20 -0
  34. metadata +41 -5
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
+ - ree
4
5
  - 1.9.2
5
6
  - 1.9.3
6
7
  - 2.0.0
@@ -9,3 +10,7 @@ before_install: sudo ./spec/support/install-lxc.sh
9
10
 
10
11
  notifications:
11
12
  irc: "irc.freenode.net#jovelabs"
13
+
14
+ matrix:
15
+ allow_failures:
16
+ - rvm: ree
data/README.md CHANGED
@@ -80,7 +80,7 @@ Issues:
80
80
 
81
81
  LXC - An interface for controlling local or remote Linux Containers (LXC)
82
82
 
83
- * Author: Zachary Patten <zachary@jovelabs.com> [![endorse](http://api.coderwall.com/zpatten/endorsecount.png)](http://coderwall.com/zpatten)
83
+ * Author: Zachary Patten <zachary AT jovelabs DOT com> [![endorse](http://api.coderwall.com/zpatten/endorsecount.png)](http://coderwall.com/zpatten)
84
84
  * Copyright: Copyright (c) Zachary Patten
85
85
  * License: Apache License, Version 2.0
86
86
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary@jovelabs.net>
3
+ # Author: Zachary Patten <zachary AT jovelabs DOT com>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
data/bin/lxc-console CHANGED
@@ -1,3 +1,22 @@
1
+ ################################################################################
2
+ #
3
+ # Author: Zachary Patten <zachary AT jovelabs DOT com>
4
+ # Copyright: Copyright (c) Zachary Patten
5
+ # License: Apache License, Version 2.0
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ################################################################################
1
20
  #!/usr/bin/env ruby
2
21
 
3
22
  def lxc_console
data/lib/lxc/config.rb CHANGED
@@ -5,7 +5,7 @@ class LXC
5
5
 
6
6
  # Main Config Class
7
7
  #
8
- # @author Zachary Patten <zachary@jovelabs.net>
8
+ # @author Zachary Patten <zachary AT jovelabs DOT com>
9
9
  class Config
10
10
 
11
11
  attr_accessor :networks, :filename
data/lib/lxc/container.rb CHANGED
@@ -7,7 +7,7 @@ class LXC
7
7
 
8
8
  # Main Container Class
9
9
  #
10
- # @author Zachary Patten <zachary@jovelabs.net>
10
+ # @author Zachary Patten <zachary AT jovelabs DOT com>
11
11
  class Container
12
12
 
13
13
  # An array containing the valid container states extracted from the LXC
@@ -64,6 +64,11 @@ class LXC
64
64
  # @return [String] Container name
65
65
  attr_reader :name
66
66
 
67
+ # Returns the parent LXC class instance
68
+ #
69
+ # @return [LXC] Parent LXC class instance.
70
+ attr_reader :lxc
71
+
67
72
  # @param [Hash] options Options hash.
68
73
  # @option options [LXC] :lxc Our parent LXC class instance.
69
74
  # @option options [String] :name The name of the container.
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.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
 
8
8
  end
data/lib/lxc.rb CHANGED
@@ -4,7 +4,7 @@ require 'lxc/version'
4
4
 
5
5
  # Top-Level LXC Class
6
6
  #
7
- # @author Zachary Patten <zachary@jovelabs.net>
7
+ # @author Zachary Patten <zachary AT jovelabs DOT com>
8
8
  class LXC
9
9
 
10
10
  # Top-Level Error Class
data/lxc.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary@jovelabs.net>
3
+ # Author: Zachary Patten <zachary AT jovelabs DOT com>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.name = "lxc"
26
26
  spec.version = LXC::VERSION
27
27
  spec.authors = ["Zachary Patten"]
28
- spec.email = ["zachary@jovelabs.com"]
28
+ spec.email = ["zachary AT jovelabs DOT com"]
29
29
  spec.description = %q(An interface for controlling local or remote Linux Containers (LXC))
30
30
  spec.summary = %q(An interface for controlling local or remote Linux Containers (LXC))
31
31
  spec.homepage = "https://github.com/zpatten/lxc"
@@ -0,0 +1,101 @@
1
+ ################################################################################
2
+ #
3
+ # Author: Zachary Patten <zachary AT jovelabs DOT com>
4
+ # Copyright: Copyright (c) Zachary Patten
5
+ # License: Apache License, Version 2.0
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ################################################################################
20
+ require "spec_helper"
21
+
22
+ describe LXC::Config do
23
+
24
+ subject {
25
+ config_file = File.expand_path(File.join(File.dirname(__FILE__), '..', 'support', 'fixtures', 'test-container'))
26
+
27
+ @lxc = LXC.new(:use_sudo => true)
28
+ lxc_config = LXC::Config.new(@lxc, config_file)
29
+ lxc_config.load
30
+
31
+ lxc_config
32
+ }
33
+
34
+ describe "class" do
35
+
36
+ it "should be an instance of LXC::Config" do
37
+ subject.should be_an_instance_of LXC::Config
38
+ end
39
+
40
+ describe "attributes" do
41
+
42
+ describe "networks" do
43
+ it "should define our network interfaces" do
44
+ subject.networks.count.should == 1
45
+ subject.networks.should be_kind_of(Array)
46
+ subject.networks.first.should be_kind_of(Hash)
47
+ subject.networks.first.keys.should_not be_empty
48
+ subject.networks.first.values.should_not be_empty
49
+ end
50
+ end
51
+
52
+ end
53
+
54
+ end
55
+
56
+ describe "methods" do
57
+
58
+ describe "#load" do
59
+ it "should load the configuration from the file on disk" do
60
+ subject['lxc.utsname'].first.should == 'server-east-1'
61
+ end
62
+ end
63
+
64
+ describe "#[]=" do
65
+ it "should let us set values" do
66
+ subject['lxc.utsname'] = "funkytown"
67
+ end
68
+ end
69
+
70
+ describe "#keys" do
71
+ it "should return all of the keys in the configuration" do
72
+ subject.keys.should be_kind_of(Array)
73
+ subject.keys.should_not be_empty
74
+ end
75
+ end
76
+
77
+ describe "#values" do
78
+ it "should return all of the values in the configuration" do
79
+ subject.values.should be_kind_of(Array)
80
+ subject.values.should_not be_empty
81
+ end
82
+ end
83
+
84
+ describe "#inspect" do
85
+ it "should return a concise string representation of the instance" do
86
+ subject.inspect.should be_kind_of(String)
87
+ subject.inspect.should_not be_empty
88
+ end
89
+ end
90
+
91
+ describe "#save" do
92
+ it "should allow us to save the configuration to disk" do
93
+ subject['lxc.utsname'] = "funkytown"
94
+ subject.filename = Tempfile.new('save').path
95
+ subject.save
96
+ end
97
+ end
98
+
99
+ end
100
+
101
+ end
@@ -1,3 +1,22 @@
1
+ ################################################################################
2
+ #
3
+ # Author: Zachary Patten <zachary AT jovelabs DOT com>
4
+ # Copyright: Copyright (c) Zachary Patten
5
+ # License: Apache License, Version 2.0
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ################################################################################
1
20
  require "spec_helper"
2
21
 
3
22
  describe LXC::Container do
@@ -123,6 +142,81 @@ describe LXC::Container do
123
142
 
124
143
  subject.state.should == :not_created
125
144
  end
145
+
146
+ it "should return unknown for a created but missing container" do
147
+ subject.lxc.stub(:exec) { lxc_fixture(lxc_version, "lxc-ls-w-containers.out") }
148
+
149
+ subject.state.should == :unknown
150
+ end
151
+ end
152
+
153
+ describe "#create" do
154
+ it "should create the container specified in the configuration file" do
155
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-create.out") }
156
+ subject.create('-f', '/etc/lxc/dummy', '-t', 'ubuntu')
157
+ end
158
+ end
159
+
160
+ describe "#destroy" do
161
+ it "should destroy the container specified in the configuration file" do
162
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-destroy.out") }
163
+ subject.destroy
164
+ end
165
+ end
166
+
167
+ describe "#start" do
168
+ it "should start the container specified in the configuration file" do
169
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-start.out") }
170
+ subject.start
171
+ end
172
+ end
173
+
174
+ describe "#stop" do
175
+ it "should stop the container specified in the configuration file" do
176
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-stop.out") }
177
+ subject.stop
178
+ end
179
+ end
180
+
181
+ describe "#restart" do
182
+ it "should restart the container specified in the configuration file" do
183
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-restart.out") }
184
+ subject.restart
185
+ end
186
+ end
187
+
188
+ describe "#freeze" do
189
+ it "should freeze the container specified in the configuration file" do
190
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-freeze.out") }
191
+ subject.freeze
192
+ end
193
+ end
194
+
195
+ describe "#unfreeze" do
196
+ it "should unfreeze the container specified in the configuration file" do
197
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-unfreeze.out") }
198
+ subject.unfreeze
199
+ end
200
+ end
201
+
202
+ describe "#attach" do
203
+ it "should execute the supplied command inside the container" do
204
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-attach.out") }
205
+ subject.attach('whoami').strip.should == 'root'
206
+ end
207
+ end
208
+
209
+ describe "#execute" do
210
+ it "should execute the supplied command inside the container" do
211
+ subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-attach.out") }
212
+ subject.execute('whoami').strip.should == 'root'
213
+ end
214
+ end
215
+
216
+ describe "#fs_root" do
217
+ it "should return the path to our containers filesystem" do
218
+ subject.fs_root.should == '/var/lib/lxc/test-container/rootfs'
219
+ end
126
220
  end
127
221
 
128
222
  describe "#config" do
data/spec/lxc_spec.rb CHANGED
@@ -1,3 +1,22 @@
1
+ ################################################################################
2
+ #
3
+ # Author: Zachary Patten <zachary AT jovelabs DOT com>
4
+ # Copyright: Copyright (c) Zachary Patten
5
+ # License: Apache License, Version 2.0
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ################################################################################
1
20
  require "spec_helper"
2
21
 
3
22
  describe LXC do
@@ -29,6 +48,15 @@ describe LXC do
29
48
  LXC_VERSIONS.each do |lxc_version|
30
49
  context "LXC Target Version #{lxc_version}" do
31
50
 
51
+ describe "#config" do
52
+
53
+ it "should return us an instance of the LXC::Config class representing the main LXC configuration file" do
54
+ subject.config.should be_kind_of(LXC::Config)
55
+ subject.config.filename.should == "/etc/lxc/lxc.conf"
56
+ end
57
+
58
+ end
59
+
32
60
  describe "#ls" do
33
61
 
34
62
  context "with containers" do
@@ -38,7 +66,7 @@ describe LXC do
38
66
 
39
67
  subject.ls.should be_kind_of(Array)
40
68
  subject.ls.should_not be_empty
41
- subject.ls.size.should eq(1)
69
+ subject.ls.size.should eq(2)
42
70
  end
43
71
 
44
72
  end
@@ -134,7 +162,7 @@ describe LXC do
134
162
  subject.stub(:exec) { lxc_fixture(lxc_version, "lxc-ls-w-containers.out") }
135
163
 
136
164
  subject.containers.should be_kind_of(Array)
137
- subject.containers.size.should eq(1)
165
+ subject.containers.size.should eq(2)
138
166
  end
139
167
  end
140
168
 
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary@jovelabs.net>
3
+ # Author: Zachary Patten <zachary AT jovelabs DOT com>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -0,0 +1 @@
1
+ root
File without changes
File without changes
File without changes
@@ -1,2 +1,4 @@
1
1
  devop-test-1
2
2
  devop-test-1
3
+ test-container
4
+ test-container
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,2 +1,4 @@
1
1
  devop-test-1
2
2
  devop-test-1
3
+ test-container
4
+ test-container
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,9 @@
1
+ lxc.utsname = server-east-1
2
+ lxc.arch = amd64
3
+ lxc.network.type = veth
4
+ lxc.network.flags = up
5
+ lxc.network.link = br0
6
+ lxc.network.name = eth0
7
+ lxc.network.hwaddr = 00:00:5e:b7:e5:15
8
+ lxc.network.ipv4 = 10.10.0.254/16 255.255.0.0
9
+ lxc.network.ipv4.gateway = auto
@@ -1,3 +1,22 @@
1
+ ################################################################################
2
+ #
3
+ # Author: Zachary Patten <zachary AT jovelabs DOT com>
4
+ # Copyright: Copyright (c) Zachary Patten
5
+ # License: Apache License, Version 2.0
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ################################################################################
1
20
  #!/bin/bash
2
21
  apt-get -qq update
3
22
  cat <<EOF | tee /usr/sbin/policy-rc.d
@@ -6,3 +25,4 @@ exit 101
6
25
  EOF
7
26
  chmod 755 /usr/sbin/policy-rc.d
8
27
  apt-get -qq install lxc
28
+ lxc-version
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.0
4
+ version: 0.2.1
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-03 00:00:00.000000000 Z
12
+ date: 2013-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ztk
@@ -141,7 +141,7 @@ dependencies:
141
141
  version: '0'
142
142
  description: An interface for controlling local or remote Linux Containers (LXC)
143
143
  email:
144
- - zachary@jovelabs.com
144
+ - zachary AT jovelabs DOT com
145
145
  executables:
146
146
  - lxc-console
147
147
  extensions: []
@@ -163,25 +163,43 @@ files:
163
163
  - lib/lxc/container.rb
164
164
  - lib/lxc/version.rb
165
165
  - lxc.gemspec
166
+ - spec/lxc/config_spec.rb
166
167
  - spec/lxc/container_spec.rb
167
168
  - spec/lxc_spec.rb
168
169
  - spec/spec_helper.rb
170
+ - spec/support/fixtures/0.7.5/lxc-attach.out
169
171
  - spec/support/fixtures/0.7.5/lxc-checkconfig.out
172
+ - spec/support/fixtures/0.7.5/lxc-create.out
173
+ - spec/support/fixtures/0.7.5/lxc-destroy.out
174
+ - spec/support/fixtures/0.7.5/lxc-freeze.out
170
175
  - spec/support/fixtures/0.7.5/lxc-info-pid-stopped.out
171
176
  - spec/support/fixtures/0.7.5/lxc-info-state-stopped.out
172
177
  - spec/support/fixtures/0.7.5/lxc-ls-w-containers.out
173
178
  - spec/support/fixtures/0.7.5/lxc-ls-wo-containers.out
174
179
  - spec/support/fixtures/0.7.5/lxc-ps.out
180
+ - spec/support/fixtures/0.7.5/lxc-restart.out
181
+ - spec/support/fixtures/0.7.5/lxc-start.out
182
+ - spec/support/fixtures/0.7.5/lxc-stop.out
183
+ - spec/support/fixtures/0.7.5/lxc-unfreeze.out
175
184
  - spec/support/fixtures/0.7.5/lxc-version.out
176
185
  - spec/support/fixtures/0.7.5/lxc-wait.out
186
+ - spec/support/fixtures/0.8.0-rc2/lxc-attach.out
177
187
  - spec/support/fixtures/0.8.0-rc2/lxc-checkconfig.out
188
+ - spec/support/fixtures/0.8.0-rc2/lxc-create.out
189
+ - spec/support/fixtures/0.8.0-rc2/lxc-destroy.out
190
+ - spec/support/fixtures/0.8.0-rc2/lxc-freeze.out
178
191
  - spec/support/fixtures/0.8.0-rc2/lxc-info-pid-stopped.out
179
192
  - spec/support/fixtures/0.8.0-rc2/lxc-info-state-stopped.out
180
193
  - spec/support/fixtures/0.8.0-rc2/lxc-ls-w-containers.out
181
194
  - spec/support/fixtures/0.8.0-rc2/lxc-ls-wo-containers.out
182
195
  - spec/support/fixtures/0.8.0-rc2/lxc-ps.out
196
+ - spec/support/fixtures/0.8.0-rc2/lxc-restart.out
197
+ - spec/support/fixtures/0.8.0-rc2/lxc-start.out
198
+ - spec/support/fixtures/0.8.0-rc2/lxc-stop.out
199
+ - spec/support/fixtures/0.8.0-rc2/lxc-unfreeze.out
183
200
  - spec/support/fixtures/0.8.0-rc2/lxc-version.out
184
201
  - spec/support/fixtures/0.8.0-rc2/lxc-wait.out
202
+ - spec/support/fixtures/test-container
185
203
  - spec/support/install-lxc.sh
186
204
  homepage: https://github.com/zpatten/lxc
187
205
  licenses:
@@ -198,7 +216,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
216
  version: '0'
199
217
  segments:
200
218
  - 0
201
- hash: -1338516408073467729
219
+ hash: -849561411533075041
202
220
  required_rubygems_version: !ruby/object:Gem::Requirement
203
221
  none: false
204
222
  requirements:
@@ -207,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
225
  version: '0'
208
226
  segments:
209
227
  - 0
210
- hash: -1338516408073467729
228
+ hash: -849561411533075041
211
229
  requirements: []
212
230
  rubyforge_project:
213
231
  rubygems_version: 1.8.25
@@ -215,24 +233,42 @@ signing_key:
215
233
  specification_version: 3
216
234
  summary: An interface for controlling local or remote Linux Containers (LXC)
217
235
  test_files:
236
+ - spec/lxc/config_spec.rb
218
237
  - spec/lxc/container_spec.rb
219
238
  - spec/lxc_spec.rb
220
239
  - spec/spec_helper.rb
240
+ - spec/support/fixtures/0.7.5/lxc-attach.out
221
241
  - spec/support/fixtures/0.7.5/lxc-checkconfig.out
242
+ - spec/support/fixtures/0.7.5/lxc-create.out
243
+ - spec/support/fixtures/0.7.5/lxc-destroy.out
244
+ - spec/support/fixtures/0.7.5/lxc-freeze.out
222
245
  - spec/support/fixtures/0.7.5/lxc-info-pid-stopped.out
223
246
  - spec/support/fixtures/0.7.5/lxc-info-state-stopped.out
224
247
  - spec/support/fixtures/0.7.5/lxc-ls-w-containers.out
225
248
  - spec/support/fixtures/0.7.5/lxc-ls-wo-containers.out
226
249
  - spec/support/fixtures/0.7.5/lxc-ps.out
250
+ - spec/support/fixtures/0.7.5/lxc-restart.out
251
+ - spec/support/fixtures/0.7.5/lxc-start.out
252
+ - spec/support/fixtures/0.7.5/lxc-stop.out
253
+ - spec/support/fixtures/0.7.5/lxc-unfreeze.out
227
254
  - spec/support/fixtures/0.7.5/lxc-version.out
228
255
  - spec/support/fixtures/0.7.5/lxc-wait.out
256
+ - spec/support/fixtures/0.8.0-rc2/lxc-attach.out
229
257
  - spec/support/fixtures/0.8.0-rc2/lxc-checkconfig.out
258
+ - spec/support/fixtures/0.8.0-rc2/lxc-create.out
259
+ - spec/support/fixtures/0.8.0-rc2/lxc-destroy.out
260
+ - spec/support/fixtures/0.8.0-rc2/lxc-freeze.out
230
261
  - spec/support/fixtures/0.8.0-rc2/lxc-info-pid-stopped.out
231
262
  - spec/support/fixtures/0.8.0-rc2/lxc-info-state-stopped.out
232
263
  - spec/support/fixtures/0.8.0-rc2/lxc-ls-w-containers.out
233
264
  - spec/support/fixtures/0.8.0-rc2/lxc-ls-wo-containers.out
234
265
  - spec/support/fixtures/0.8.0-rc2/lxc-ps.out
266
+ - spec/support/fixtures/0.8.0-rc2/lxc-restart.out
267
+ - spec/support/fixtures/0.8.0-rc2/lxc-start.out
268
+ - spec/support/fixtures/0.8.0-rc2/lxc-stop.out
269
+ - spec/support/fixtures/0.8.0-rc2/lxc-unfreeze.out
235
270
  - spec/support/fixtures/0.8.0-rc2/lxc-version.out
236
271
  - spec/support/fixtures/0.8.0-rc2/lxc-wait.out
272
+ - spec/support/fixtures/test-container
237
273
  - spec/support/install-lxc.sh
238
274
  has_rdoc: