Method: Puppet::Pal::JsonCatalogEncoder#encode

Defined in:
lib/puppet/pal/json_catalog_encoder.rb

#encodeObject

Encodes the entire catalog as a rich-data Json catalog.

Returns:

  • String The catalog in Json format using rich data format



41
42
43
# File 'lib/puppet/pal/json_catalog_encoder.rb', line 41

def encode
  possibly_filtered_catalog.to_json(:pretty => pretty)
end