linux-lxc 0.1.5 → 0.1.6
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.
- checksums.yaml +4 -4
- data/lib/linux/lxc/file.rb +1 -1
- data/lib/linux/lxc/version.rb +1 -1
- data/test/linux_lxc_test.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e95795521d182523b4a791aa936b134d05861975
|
|
4
|
+
data.tar.gz: 054bd8c7e57d201eb003eea18a4d3c24812fb5ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e00da909c3d70f957efbc422e49f640143211ac60b416f834914c5ffa65da812b2513ad494fd630bae51576946deca4eee6fe5037ba83adc88eeab6be05424e
|
|
7
|
+
data.tar.gz: 3f533316f382176356681c7963f0bac2380020f1352abd25d82ea47b2a1ef01ec9faafcdd6a46884ff5778ae7c585c3b771ebb9cc13cda95d7151a1d7208ef07
|
data/lib/linux/lxc/file.rb
CHANGED
|
@@ -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-
|
|
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))
|
data/lib/linux/lxc/version.rb
CHANGED
data/test/linux_lxc_test.rb
CHANGED
|
@@ -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,
|
|
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,
|
|
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.
|
|
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:
|
|
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
|