linux-lxc 0.1.3 → 0.1.4

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: 38ce5b48231fe685aadd6f5be5c46150e8d75124
4
- data.tar.gz: 26b881d56dd5186b1091e3f65faf6d632ce27e28
3
+ metadata.gz: e86c7168089ae71c61a0ce55cd11ad3ec15b857d
4
+ data.tar.gz: 179ee22a4ce4e3a2c707db3700cb009f2fc4a668
5
5
  SHA512:
6
- metadata.gz: 73636bbb9d7677faf5dc6add412902bf74285d621ee0f1fad76d8cca00d38a034b93ce91408b9390b4bdcac4e015f9e0e1b54eea6e290e0df0528d2a92ba9cc5
7
- data.tar.gz: 37f692b87ac314ceb8a4bbf837a7c9b5034d6f4af078c3725fa871c16818099d7721959053016cde8fd188332f633479cba14f76a9c5dbf5aa299ebc8dab5e15
6
+ metadata.gz: b81e2d74d31261d884b83e4660dfe1d69cc522f669804d8a403178dc773987727e49d255ad5649448d6ef4bace80fdb5770d2cdb2eca17d5476147b2a294eae5
7
+ data.tar.gz: 31936e38061c98f764b0d616ee4a1f15c980759c71e8d955bc95c9cec940a614d176507bb1953c109304445d16abfe52dd2e547cd24c6ed8610f621bf73e1028
@@ -1,5 +1,5 @@
1
1
  module Linux
2
2
  module Lxc
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
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, '*')).select { |f| ::File.file?(f) }
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
@@ -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.f'))
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.3
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-16 00:00:00.000000000 Z
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: