kitchen-lxc 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kitchen-lxc.gemspec +1 -1
- data/lib/kitchen/driver/lxc.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d60baa81e645876f6f129d6aba7c4b40afb693b
|
4
|
+
data.tar.gz: ab734d7d552ec96e21fd45cbd67da9df6a53f4ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2843f470aa131750ead5d4422cea1fde170e65a6b47bd4db088b75f1236e163285d47a920641371508134249243d6761dcbb1f607e8f6a8bbc354e1d9bcd618
|
7
|
+
data.tar.gz: a80507c2eb3867041f23f5930872c2cf9b04aed33c44069b4084258d06497fc23f3b8ce1ca85b8649b60377ae52bf3fd33dff5bd331c8ec20c084a5eeddbdc57
|
data/kitchen-lxc.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "kitchen-lxc"
|
3
|
-
gem.version = "0.1.
|
3
|
+
gem.version = "0.1.2"
|
4
4
|
gem.authors = ["Sean Porter", "Chris Roberts"]
|
5
5
|
gem.email = ["portertech@gmail.com", "code@chrisroberts.org"]
|
6
6
|
gem.description = "LXC driver for Test Kitchen"
|
data/lib/kitchen/driver/lxc.rb
CHANGED
@@ -17,12 +17,12 @@ module Kitchen
|
|
17
17
|
|
18
18
|
def create(state)
|
19
19
|
name = instance.platform.name.gsub(/[_\-.]/, '')
|
20
|
-
names = Dir.glob(instance.driver.fetch(:lxc_directory, '/var/lib/lxc/*')).map do |path|
|
20
|
+
names = Dir.glob(instance.driver.config.fetch(:lxc_directory, '/var/lib/lxc/*')).map do |path|
|
21
21
|
if(File.directory?(path))
|
22
22
|
File.basename(path)
|
23
23
|
end
|
24
24
|
end.compact.sort
|
25
|
-
config[:original] = names.detect{|n| n.start_with?(name)}
|
25
|
+
config[:original] = names.detect{|n| n.tr(/[_\-.]/, '').start_with?(name)}
|
26
26
|
|
27
27
|
container = ::Lxc::Ephemeral.new(config.to_hash)
|
28
28
|
container.create!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-lxc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-kitchen
|