lib/hieracles/formats/rawyaml.rb in hieracles-0.3.6 vs lib/hieracles/formats/rawyaml.rb in hieracles-0.4.0

- old
+ new

@@ -28,9 +28,17 @@ end def allparams(args) @node.params_tree(false).to_yaml end + + def build_list(hash, notifications, filter) + if filter[0] + hash.select { |k, e| Regexp.new(filter[0]).match k }.to_yaml + else + hash.to_yaml + end + end end end end