Sha256: 6f394b6a5eb10d53a9e654ef2a90aa16824a189a1a53681f2bc9df1d153b80c7

Contents?: true

Size: 1.38 KB

Versions: 20

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true
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'

  # 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'

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

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

  # Type key used for symbols
  PCORE_TYPE_SYMBOL = 'Symbol'

  # Type key used for Default
  PCORE_TYPE_DEFAULT = 'Default'

  # Type key used for document local references
  PCORE_LOCAL_REF_SYMBOL = 'LocalRef'
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

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/pops/serialization.rb
puppet-8.3.0-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-8.3.0-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-8.3.0-universal-darwin lib/puppet/pops/serialization.rb
puppet-8.3.1 lib/puppet/pops/serialization.rb
puppet-8.3.1-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-8.3.1-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-8.3.1-universal-darwin lib/puppet/pops/serialization.rb
puppet-8.2.0 lib/puppet/pops/serialization.rb
puppet-8.2.0-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-8.2.0-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-8.2.0-universal-darwin lib/puppet/pops/serialization.rb
puppet-8.1.0 lib/puppet/pops/serialization.rb
puppet-8.1.0-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-8.1.0-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-8.1.0-universal-darwin lib/puppet/pops/serialization.rb
puppet-8.0.1 lib/puppet/pops/serialization.rb
puppet-8.0.1-x86-mingw32 lib/puppet/pops/serialization.rb
puppet-8.0.1-x64-mingw32 lib/puppet/pops/serialization.rb
puppet-8.0.1-universal-darwin lib/puppet/pops/serialization.rb