Module: ErbHiera::Manifest
- Defined in:
- lib/erb-hiera/manifest.rb
Class Method Summary collapse
Class Method Details
.heading(out_file) ⇒ Object
14 15 16 |
# File 'lib/erb-hiera/manifest.rb', line 14 def self.heading(out_file) "\n# #{out_file.gsub(/.*\/conf\//, '').split("/").join(" / ")}" end |
.info(manifest, out_file) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/erb-hiera/manifest.rb', line 3 def self.info(manifest, out_file) puts heading(out_file) puts "#" puts "# scope:" puts "#{ErbHiera.scope.to_yaml.to_s.gsub(/^/, '# ')}" puts "#" puts "# in: #{manifest}" puts "# out: #{out_file}" puts "#" end |