Class: Hieracles::Formats::Rawyaml

Inherits:
Hieracles::Format show all
Defined in:
lib/hieracles/formats/rawyaml.rb

Overview

format mostly useful for re-integration in param files

Instance Method Summary collapse

Methods inherited from Hieracles::Format

#initialize, #show_params

Constructor Details

This class inherits a constructor from Hieracles::Format

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

#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