linux-lxc 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9ea4fb656b6d88f11202061ddf0177756b8e330
4
- data.tar.gz: 801d1d04602c7ca47baaa87ae62bfdf8c7c7aa5e
3
+ metadata.gz: e29ef7cd503f7e01458679c16c7d3636a9a3d425
4
+ data.tar.gz: ba28f1aea226cfa921485a9aacd00e5a8690b3dc
5
5
  SHA512:
6
- metadata.gz: ced9dd2ca6f1e5fa8d832981c2985a9d8cb7b50cbbef6ba9b2af30a39b255865ea20399692bc8710230153ebb4d43ec44444314caa97deb697bb0b16570f0dd2
7
- data.tar.gz: 45b562050ef4c80f461b123531a25a5bd5a616780599abdf78ab46a94058e42fdf23508f7058922fd4c91e15504e01424fc6c8fb76b615dbb233209784e7201e
6
+ metadata.gz: e683fc74958a16f1e7d52c8be02dedeedbf1e6d08ddddf104a0e08ad8cd6542e039e593ddd8422629110e1fa4cba7c6fc17924f2100d5a5e4e20efbf609807bb
7
+ data.tar.gz: a43306a48160d6d7d91df55fe4a22592a857bdec65dda4bf48b09002f01b93103735647f8bfd9775d564359daa1effe80ea7bd748d741d182e0a5f21fe289c6e
@@ -14,6 +14,10 @@ module Linux
14
14
  @lines.each { |line| block.call(line) }
15
15
  end
16
16
 
17
+ def find(&block)
18
+ @lines.find(&block)
19
+ end
20
+
17
21
  def values
18
22
  @lines.map(&:value)
19
23
  end
@@ -1,5 +1,5 @@
1
1
  module Linux
2
2
  module Lxc
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -258,6 +258,8 @@ SAMPLE
258
258
 
259
259
  lxc.get('lxc.network.hwaddr').first.value = 'construqt'
260
260
  assert_equal lxc.get('lxc.network.hwaddr').values, ['construqt']
261
+
262
+ assert_equal lxc.get('lxc.network.hwaddr').find{|i| i.value == 'construqt'}.value, 'construqt'
261
263
  lxc.write
262
264
 
263
265
  lxc_read = Linux::Lxc.parse(lxc.file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linux-lxc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meno Abels