class Hieracles::Formats::Rawyaml

format mostly useful for re-integration in param files

Public Instance Methods

allparams(args) click to toggle source
# File lib/hieracles/formats/rawyaml.rb, line 30
def allparams(args)
  @node.params_tree(false).to_yaml
end
build_list(hash, notifications, filter) click to toggle source
# File lib/hieracles/formats/rawyaml.rb, line 34
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
facts(_) click to toggle source
# File lib/hieracles/formats/rawyaml.rb, line 10
def facts(_)
  @node.facts.to_yaml
end
files(_) click to toggle source
# File lib/hieracles/formats/rawyaml.rb, line 14
def files(_)
  @node.files.to_yaml
end
info(_) click to toggle source
# File lib/hieracles/formats/rawyaml.rb, line 6
def info(_)
  @node.info.to_yaml
end
modules(_) click to toggle source
# File lib/hieracles/formats/rawyaml.rb, line 22
def modules(_)
  @node.modules.to_yaml
end
params(args) click to toggle source
# File lib/hieracles/formats/rawyaml.rb, line 26
def params(args)
  @node.params_tree(true).to_yaml
end
paths(_) click to toggle source
# File lib/hieracles/formats/rawyaml.rb, line 18
def paths(_)
  @node.paths.to_yaml
end