Sha256: ba302120680bdef3f03a36c6268c65aebcf4a0c7a0c372da1ef6be9c57f95945
Contents?: true
Size: 803 Bytes
Versions: 3
Compression:
Stored size: 803 Bytes
Contents
module Hieracles module Formats # format mostly useful for re-integration in param files class Rawyaml < Hieracles::Format def info(_) @node.info.to_yaml end def facts(_) @node.facts.to_yaml end def files(_) @node.files.to_yaml end def paths(_) @node.paths.to_yaml end def modules(_) @node.modules.to_yaml end def params(args) @node.params_tree(true).to_yaml 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hieracles-0.4.2 | lib/hieracles/formats/rawyaml.rb |
hieracles-0.4.1 | lib/hieracles/formats/rawyaml.rb |
hieracles-0.4.0 | lib/hieracles/formats/rawyaml.rb |