Sha256: 071ed635e45462a6a1616c33086367f111c6e5dfe0828593e0190d5b8ce2c2c8

Contents?: true

Size: 1.4 KB

Versions: 349

Compression:

Stored size: 1.4 KB

Contents

module Puppet::Pops
module Serialization
  def self.not_implemented(impl, method_name)
    raise NotImplementedError, "The class #{impl.class.name} should have implemented the method #{method_name}()"
  end

  class SerializationError < Puppet::Error
  end

  PCORE_TYPE_KEY = '__ptype'.freeze

  # Key used when the value can be represented as, and recreated from, a single string that can
  # be passed to a `from_string` method or an array of values that can be passed to the default
  # initializer method.
  PCORE_VALUE_KEY = '__pvalue'.freeze

  # Type key used for hashes that contain keys that are not of type String
  PCORE_TYPE_HASH = 'Hash'.freeze

  # Type key used for symbols
  PCORE_TYPE_SENSITIVE = 'Sensitive'.freeze
  PCORE_TYPE_BINARY = 'Binary'.freeze

  # Type key used for symbols
  PCORE_TYPE_SYMBOL = 'Symbol'.freeze

  # Type key used for Default
  PCORE_TYPE_DEFAULT = 'Default'.freeze

  # Type key used for document local references
  PCORE_LOCAL_REF_SYMBOL = 'LocalRef'.freeze
end
end

require_relative 'serialization/json_path'
require_relative 'serialization/from_data_converter'
require_relative 'serialization/to_data_converter'
require_relative 'serialization/to_stringified_converter'
require_relative 'serialization/serializer'
require_relative 'serialization/deserializer'
require_relative 'serialization/json'
require_relative 'serialization/time_factory'
require_relative 'serialization/object'

Version data entries

349 entries across 349 versions & 2 rubygems

Version Path
puppet-7.34.0 lib/puppet/pops/serialization.rb
puppet-7.34.0-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-7.34.0-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-7.34.0-universal-darwin lib/puppet/pops/serialization.rb
puppet-7.33.0 lib/puppet/pops/serialization.rb
puppet-7.33.0-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-7.33.0-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-7.33.0-universal-darwin lib/puppet/pops/serialization.rb
puppet-7.32.1 lib/puppet/pops/serialization.rb
puppet-7.32.1-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-7.32.1-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-7.32.1-universal-darwin lib/puppet/pops/serialization.rb
puppet-7.31.0 lib/puppet/pops/serialization.rb
puppet-7.31.0-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-7.31.0-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-7.31.0-universal-darwin lib/puppet/pops/serialization.rb
puppet-7.30.0 lib/puppet/pops/serialization.rb
puppet-7.30.0-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-7.30.0-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-7.30.0-universal-darwin lib/puppet/pops/serialization.rb