Sha256: 7a4ef0faa1c09aed6796dbb713a7f0c3370127fb6af3d5ecc33d19084f10079f

Contents?: true

Size: 538 Bytes

Versions: 13

Compression:

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

13 entries across 13 versions & 1 rubygems

Version Path
hieracles-0.2.0 lib/hieracles/formats/rawyaml.rb
hieracles-0.1.7 lib/hieracles/formats/rawyaml.rb
hieracles-0.1.6 lib/hieracles/formats/rawyaml.rb
hieracles-0.1.5 lib/hieracles/formats/rawyaml.rb
hieracles-0.1.4 lib/hieracles/formats/rawyaml.rb
hieracles-0.1.3 lib/hieracles/formats/rawyaml.rb
hieracles-0.1.2 lib/hieracles/formats/rawyaml.rb
hieracles-0.1.1 lib/hieracles/formats/rawyaml.rb
hieracles-0.1.0 lib/hieracles/formats/rawyaml.rb
hieracles-0.0.6 lib/hieracles/formats/rawyaml.rb
hieracles-0.0.5 lib/hieracles/formats/rawyaml.rb
hieracles-0.0.4 lib/hieracles/formats/rawyaml.rb
hieracles-0.0.3 lib/hieracles/formats/rawyaml.rb