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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b48bbd0c4877b4b20f9d4ba3a96210d484810aa
4
- data.tar.gz: 0012088b2a49f1a0abd894727b8c951985cf29b2
3
+ metadata.gz: 6d60baa81e645876f6f129d6aba7c4b40afb693b
4
+ data.tar.gz: ab734d7d552ec96e21fd45cbd67da9df6a53f4ac
5
5
  SHA512:
6
- metadata.gz: 865ecb374db59a9b18301e9134cc14cb54989ddd1df6565d7cd55b88370200d60d780ec97d5e04c2d3ef986914cbd78167ce64bf439ea57f1d9c0eb498dac2e7
7
- data.tar.gz: 8f0e81d162ce7775afe5bb8687d240e349818e47e8ba80b3caf78c18bc114c8e494a86cd2d461b3200b20d62a032de34b7e934a7afa66c851eb522ee805a6057
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.0"
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"
@@ -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.0
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-03 00:00:00.000000000 Z
12
+ date: 2014-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-kitchen