palletjack-tools 0.5.0 → 0.6.0

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: 0ecc29649c0b152d19482c91b6f8fe8520516744
4
- data.tar.gz: fb8bc8d57f9088c9a75807133a21db6e0a16b101
3
+ metadata.gz: ed7051bfe3f1b942b259227abbae1ec8b98bdc01
4
+ data.tar.gz: 8b25d846aa56e8e423bb51f09124ac49d9c2272b
5
5
  SHA512:
6
- metadata.gz: 1ef02ba48e7cc6cb9019dd6f2057e3757f23b9c70b3fab0c8e0602937254dcbac822a724ac38064171e2952bb17a04ba565d1fdc7fe99fab67155633f8470b71
7
- data.tar.gz: f203988f774dcfede6fa9e6d76a1a10a820f0eb2524774f0a12567728325b789b2366521f5ea9ed013a17f3e5bc67ef955b41a9617b39b165696c6ee24b46238
6
+ metadata.gz: 2a120f54ab1926dc424d498ccfdc7c33bf2ce4ad204823b7302e5f5fdc2b45ebf2bdbd67b7ab89ccfe5153f143efe586c4ddd01341801279ced2107b9b9c22bc
7
+ data.tar.gz: b05e424268cde198b2193fc0b5db07df14e37f89365046e9acff9823f26205874cf0440cf713454e3b66122e4c67662ce29ef92002b4a128074a416a0f539097
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
-
1
+ M���J���,{�;��xM�ޯ�D���� ҩ_侷4�����l��ƫm����{Ḥ>1f3�Ϻ>�>���~j�7���ʭ%F�H�4u}W����[�/TD�NS0SC����uuϥ�w��007��mj}[��'�"Y�"��đ�&>�ae�xp�=�7&6*eb�Ŕ��<��$Y8Π����p�z�ș��_�P�Y���R
2
+ u�v���&
data/exe/palletjack2kea CHANGED
@@ -35,15 +35,15 @@ Write configuration for the Kea DHCP server from a Palletjack warehouse"
35
35
  attr_reader :kea_config
36
36
 
37
37
  def process
38
- @kea_config = { 'Dhcp4' =>
39
- jack.fetch(kind: 'service',
40
- parent_name: 'dhcp-server',
41
- name: options[:service])['service.kea_v4']
42
- }
38
+ service = jack.fetch(kind: 'service',
39
+ parent_name: 'dhcp-server',
40
+ name: options[:service])
41
+
42
+ @kea_config = { 'Dhcp4' => service['service.kea_v4'] }
43
43
 
44
44
  @kea_config['Dhcp4']['subnet4'] = []
45
45
 
46
- jack.each(kind: 'ipv4_network') do |net|
46
+ service.descendants(kind: 'ipv4_network') do |net|
47
47
  net_config = {'subnet' => net['net.ipv4.cidr'],
48
48
  'reservations' => [],
49
49
  'option-data' => []}
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: palletjack-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl-Johan Karlsson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  f8wtQllq82VF0AXUYeLtTh1f+DW3WW5BO1e2OCu5eOV7dbyaVPaNK/+rHjCN8kM/
32
32
  DGZSwUoNADmVkQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-01-30 00:00:00.000000000 Z
34
+ date: 2017-02-09 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: palletjack
@@ -39,14 +39,14 @@ dependencies:
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.5.0
42
+ version: 0.6.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.5.0
49
+ version: 0.6.0
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: dns-zone
52
52
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file