linux-lxc 0.1.3 → 0.1.4
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/version.rb +1 -1
- data/lib/linux/lxc.rb +1 -1
- data/test/linux_lxc_test.rb +3 -3
- 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: e86c7168089ae71c61a0ce55cd11ad3ec15b857d
|
4
|
+
data.tar.gz: 179ee22a4ce4e3a2c707db3700cb009f2fc4a668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b81e2d74d31261d884b83e4660dfe1d69cc522f669804d8a403178dc773987727e49d255ad5649448d6ef4bace80fdb5770d2cdb2eca17d5476147b2a294eae5
|
7
|
+
data.tar.gz: 31936e38061c98f764b0d616ee4a1f15c980759c71e8d955bc95c9cec940a614d176507bb1953c109304445d16abfe52dd2e547cd24c6ed8610f621bf73e1028
|
data/lib/linux/lxc/version.rb
CHANGED
data/lib/linux/lxc.rb
CHANGED
@@ -10,7 +10,7 @@ module Linux
|
|
10
10
|
def self.parse(file, index = Index.new)
|
11
11
|
if ::File.directory?(file)
|
12
12
|
fname = file
|
13
|
-
entries = ::Dir.glob(::File.join(file, '
|
13
|
+
entries = ::Dir.glob(::File.join(file, '*.conf')).select { |f| ::File.file?(f) }
|
14
14
|
dir = index.get_directory(fname)
|
15
15
|
entries.each do |entry|
|
16
16
|
dir.add_file(entry).parse
|
data/test/linux_lxc_test.rb
CHANGED
@@ -124,7 +124,7 @@ lxc.include = #{File.join(@temp_dir, 'common.conf.d')}
|
|
124
124
|
SAMPLE
|
125
125
|
FileUtils.mkdir_p File.join(@temp_dir, 'empty.conf.d')
|
126
126
|
FileUtils.mkdir_p File.join(@temp_dir, 'common.conf.d')
|
127
|
-
@lxc_common_conf_d_wildcard = File.join(@temp_dir, 'common.conf.d', 'wildcard')
|
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
130
|
SAMPLE
|
@@ -159,7 +159,7 @@ SAMPLE
|
|
159
159
|
lxc = Linux::Lxc.file(File.join(@temp_dir, 'base.f'))
|
160
160
|
lxc.add('# base meno')
|
161
161
|
lxc.add('lxc.cgroup.devices.allow', 'meno')
|
162
|
-
incl = Linux::Lxc.file(File.join(@temp_dir, 'incl.f'))
|
162
|
+
incl = Linux::Lxc.file(File.join(@temp_dir, 'incl.f.conf'))
|
163
163
|
lxc.add('lxc.include', incl)
|
164
164
|
incl.add('# include meno')
|
165
165
|
incl.add('lxc.network.hwaddr', '00:16:3e:67:03:4a')
|
@@ -171,7 +171,7 @@ SAMPLE
|
|
171
171
|
lxc.add('lxc.include', scratch_d)
|
172
172
|
|
173
173
|
|
174
|
-
scratch_file = scratch_d.add_file(File.join(@temp_dir, 'scratch.d', 'file.
|
174
|
+
scratch_file = scratch_d.add_file(File.join(@temp_dir, 'scratch.d', 'file.conf'))
|
175
175
|
scratch_file.add('# include scratch')
|
176
176
|
scratch_file.add('lxc.scratch_file', 'it_is_scratch_file')
|
177
177
|
lxc.write
|
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.4
|
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-
|
11
|
+
date: 2015-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Parse the output of ip addr on a linux system
|
14
14
|
email:
|