Module Facter::Util::Values
In: lib/facter/util/values.rb

A util module for facter containing helper methods

Methods

Classes and Modules

Class Facter::Util::Values::DeepFreezeError
Class Facter::Util::Values::DeepMergeError

Public Instance methods

Duplicate and deeply freeze a given data structure

@param value [Object] The structure to freeze @return [void]

Perform a deep merge of two nested data structures.

@param left [Object] @param right [Object] @param path [Array<String>] The traversal path followed when merging nested hashes

@return [Object] The merged data structure.

Flatten the given data structure to something that‘s suitable to return as flat facts.

@param path [String] The fact path to be prefixed to the given value. @param structure [Object] The data structure to flatten. Nested hashes

  will be recursively flattened, everything else will be returned as-is.

@return [Hash] The given data structure prefixed with the given path

[Validate]