Class: Hieracles::Formats::Rawyaml
Overview
format mostly useful for re-integration in param files
Instance Method Summary
collapse
#initialize, #show_params
Instance Method Details
#allparams(args) ⇒ Object
30
31
32
|
# File 'lib/hieracles/formats/rawyaml.rb', line 30
def allparams(args)
@node.params_tree(false).to_yaml
end
|
#build_list(hash, notifications, filter) ⇒ Object
34
35
36
37
38
39
40
|
# 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(_) ⇒ Object
10
11
12
|
# File 'lib/hieracles/formats/rawyaml.rb', line 10
def facts(_)
@node.facts.to_yaml
end
|
#files(_) ⇒ Object
14
15
16
|
# File 'lib/hieracles/formats/rawyaml.rb', line 14
def files(_)
@node.files.to_yaml
end
|
#info(_) ⇒ Object
6
7
8
|
# File 'lib/hieracles/formats/rawyaml.rb', line 6
def info(_)
@node.info.to_yaml
end
|
#modules(_) ⇒ Object
22
23
24
|
# File 'lib/hieracles/formats/rawyaml.rb', line 22
def modules(_)
@node.modules.to_yaml
end
|
#params(args) ⇒ Object
26
27
28
|
# File 'lib/hieracles/formats/rawyaml.rb', line 26
def params(args)
@node.params_tree(true).to_yaml
end
|
#paths(_) ⇒ Object
18
19
20
|
# File 'lib/hieracles/formats/rawyaml.rb', line 18
def paths(_)
@node.paths.to_yaml
end
|