Sha256: a4599e7cf05e22357c1166341f5c3ffb74642a9bf709faf98b706a5102b140ff

Contents?: true

Size: 596 Bytes

Versions: 9

Compression:

Stored size: 596 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

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hieracles-0.3.6 lib/hieracles/formats/rawyaml.rb
hieracles-0.3.5 lib/hieracles/formats/rawyaml.rb
hieracles-0.3.4 lib/hieracles/formats/rawyaml.rb
hieracles-0.3.3 lib/hieracles/formats/rawyaml.rb
hieracles-0.3.2 lib/hieracles/formats/rawyaml.rb
hieracles-0.3.1 lib/hieracles/formats/rawyaml.rb
hieracles-0.3.0 lib/hieracles/formats/rawyaml.rb
hieracles-0.2.2 lib/hieracles/formats/rawyaml.rb
hieracles-0.2.1 lib/hieracles/formats/rawyaml.rb