kitchenplan 2.1.15 → 2.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kitchenplan/config.rb +4 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 241fc7b6df322d1f4cdacbf6d8f9149e13942b75
4
- data.tar.gz: fe1d35bcfe77e2a3bd0f8ed93fc594b08fea701e
3
+ metadata.gz: d46b1bd5831d618ca09aa815b29efd483e2def87
4
+ data.tar.gz: e95a103eece0602bb829a96f8d66283af0404eb8
5
5
  SHA512:
6
- metadata.gz: f209cb1806385beb7e7bbab7bf388fcc2eacc1b2ebcc1937923abfc2793cf220e761040005edfccbb1968d34429fa4948307dd0f9775f501a1fb6b7a29ea2458
7
- data.tar.gz: 3bdbc83d8e8d96814c4cd3b699cb4f74bbfa361ef5f75a9a7814bbb41ea2aad7256c389a1514db00878b3c365c76637df30e1dca99a58e9fd1f636351aacee05
6
+ metadata.gz: e6e4a94c91c3e314dd38f665892996ac2295ab868731420183863c0d0dd397c74e4d7780cc8297c5cf393ca43ab9269caaa48b544686ead38e017c17c96cfb4a
7
+ data.tar.gz: 03fcd97fb043eda7a87c438a5e4663771acccebf5c2996e3c9acc03d03bfc5748fa9198b2ae708bba475d3043628751b5d8fc8860931e6e6f5ebcff4d71b184d
@@ -80,6 +80,10 @@ module Kitchenplan
80
80
  people_recipes = @people_config['recipes'] || {}
81
81
  config['recipes'] |= people_recipes['global'] || []
82
82
  config['recipes'] |= people_recipes[@platform] || []
83
+
84
+ system_recipes = @system_config['recipes'] || {}
85
+ config['recipes'] |= system_recipes['global'] || []
86
+ config['recipes'] |= system_recipes[@platform] || []
83
87
 
84
88
  # First take the attributes from default.yml
85
89
  config['attributes'] = {}
@@ -95,13 +99,6 @@ module Kitchenplan
95
99
  config['attributes'].deep_merge!(people_attributes) { |key, old, new| Array.wrap(old) + Array.wrap(new) }
96
100
 
97
101
  # lastly override from the system files
98
- system_recipes = @system_config['recipes'] || {}
99
- config['recipes'] |= system_recipes['global'] || []
100
- config['recipes'] |= system_recipes[@platform] || []
101
- config['attributes'].deep_merge!(@default_config['attributes'] || {}) { |key, old, new| Array.wrap(old) + Array.wrap(new) }
102
- @group_configs.each do |group_name, group_config|
103
- config['attributes'].deep_merge!(group_config['attributes']) { |key, old, new| Array.wrap(old) + Array.wrap(new) } unless group_config['attributes'].nil?
104
- end
105
102
  system_attributes = @system_config['attributes'] || {}
106
103
  config['attributes'].deep_merge!(system_attributes) { |key, old, new| Array.wrap(old) + Array.wrap(new) }
107
104
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchenplan
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.15
4
+ version: 2.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roderik van der Veer