formats.rb

Path: lib/puppet/network/formats.rb
Last Update: Wed Dec 09 12:54:29 -0800 2009

Required files

puppet/network/format_handler   base64   zlib  

Methods

Public Instance methods

If they pass class information, we want to ignore it. By default, we‘ll include class information but we won‘t rely on it - we don‘t want class names to be required because we then can‘t change our internal class names, which is bad.

Yaml doesn‘t need the class name; it‘s serialized.

Marshal doesn‘t need the class name; it‘s serialized.

Yaml doesn‘t need the class name; it‘s serialized.

Marshal doesn‘t need the class name; it‘s serialized.

Marshal monkey-patches Array, so this works.

PSON monkey-patches Array, so this works.

Yaml monkey-patches Array, so this works.

LAK:NOTE The format system isn‘t currently flexible enough to handle what I need to support raw formats just for individual instances (rather than both individual and collections), but we don‘t yet have enough data to make a "correct" design.

  So, we hack it so it works for singular but fail if someone tries it

on plurals.

Because of yaml issue in ruby 1.8.1…

Everything‘s supported unless you‘re on 1.8.1

Everything‘s supported

[Validate]