linux-lxc 0.1.5 → 0.1.6

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: c561e17dc08b0113ac3e405952735e7e525ed368
4
- data.tar.gz: f26d4595440b473efa4a1e3f22c0d3cf6afcdf68
3
+ metadata.gz: e95795521d182523b4a791aa936b134d05861975
4
+ data.tar.gz: 054bd8c7e57d201eb003eea18a4d3c24812fb5ba
5
5
  SHA512:
6
- metadata.gz: 1e48d4c369c63a3a4f208208bb904b7d2af9fc09dcddef6af904d20fa6e982df3b1f65907780c21faeae18332399596aee1384e961ab8368446666778c346057
7
- data.tar.gz: c6db6179afede394feaa37c85bbac3bb253c0badd7a10b05d4fd68b01c3db92e703d1cf851a1d63b3e94c9cd36ac00965b410a21ce16577c8c6c21fa65d655de
6
+ metadata.gz: 9e00da909c3d70f957efbc422e49f640143211ac60b416f834914c5ffa65da812b2513ad494fd630bae51576946deca4eee6fe5037ba83adc88eeab6be05424e
7
+ data.tar.gz: 3f533316f382176356681c7963f0bac2380020f1352abd25d82ea47b2a1ef01ec9faafcdd6a46884ff5778ae7c585c3b771ebb9cc13cda95d7151a1d7208ef07
@@ -100,7 +100,7 @@ module Linux
100
100
  elsif line.match(/^\s*#.*$/)
101
101
  self.add('#', line)
102
102
  else
103
- match = line.match(/^\s*([a-z_\.]+)\s*=\s*(.*)\s*$/)
103
+ match = line.match(/^\s*([a-z-_\.]+)\s*=\s*(.*)\s*$/)
104
104
  throw "illegal line in #{@file}:#{@lines.length}" unless match
105
105
  if match[1] == 'lxc.include'
106
106
  self.add(match[1], Lxc.parse(match[2], index))
@@ -1,5 +1,5 @@
1
1
  module Linux
2
2
  module Lxc
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
@@ -127,6 +127,8 @@ SAMPLE
127
127
  @lxc_common_conf_d_wildcard = File.join(@temp_dir, 'common.conf.d', 'wildcard.conf')
128
128
  File.write(@lxc_common_conf_d_wildcard, <<SAMPLE)
129
129
  lxc.wildcard.loaded = true
130
+ lxc.hook.mount = /usr/share/lxcfs/lxc.mount.hook
131
+ lxc.hook.post-stop = /usr/share/lxcfs/lxc.reboot.hook
130
132
  SAMPLE
131
133
  end
132
134
 
@@ -137,7 +139,7 @@ SAMPLE
137
139
  def test_reader
138
140
  lxc = Linux::Lxc.parse(@lxc_config)
139
141
 
140
- assert_equal lxc.get('lxc').length, 41
142
+ assert_equal lxc.get('lxc').length, 43
141
143
  assert_equal lxc.get('lxc.network').length, 4
142
144
  assert_equal lxc.get('lxc.network.hwaddr').length, 1
143
145
  assert_equal lxc.get('lxc.network.murks'), nil
@@ -257,7 +259,7 @@ SAMPLE
257
259
  lxc = Linux::Lxc.parse(@lxc_config)
258
260
  cnt = 0
259
261
  lxc.all_lines { |_line| cnt += 1 }
260
- assert_equal cnt, 96
262
+ assert_equal cnt, 98
261
263
  end
262
264
 
263
265
  def test_files
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linux-lxc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meno Abels
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-18 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Parse the output of ip addr on a linux system
14
14
  email:
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  version: '0'
52
52
  requirements: []
53
53
  rubyforge_project:
54
- rubygems_version: 2.0.14
54
+ rubygems_version: 2.0.14.1
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: Parse the output of ip addr on a linux system