lib/bolt/plugin.rb
# Evaluate all _plugin references in a data structure. Leaves are
# evaluated and then their parents are evaluated with references replaced
# by their values. If the result of a reference contains more references,
# they are resolved again before continuing to ascend the tree. The final
# result will not contain any references.
Evaluate all _plugin references in a data structure. Leaves are
evaluated and then their parents are evaluated with references replaced
by their values. If the result of a reference contains more references,
they are resolved again before continuing to ascend the tree. The final
result will not contain any references.
Evaluate all _plugin references in a data structure . Leaves are evaluated and then their parents are evaluated with references replaced by their values . If the result of a reference contains more references they are resolved again before continuing to ascend the tree . The final result will not contain any references .
def resolve_references(data)
      Bolt::Util.postwalk_vals(data) do |value|
        reference?(value) ? resolve_references(resolve_single_reference(value)) : value
      end
    rescue SystemStackError
      raise Bolt::Error.new("Stack depth exceeded while recursively resolving references.",
                            "bolt/recursive-reference-loop")
    end
def resolve_references ( data ) Bolt :: Util . postwalk_vals ( data ) do | value | reference? ( value ) ? resolve_references ( resolve_single_reference ( value ) ) : value end rescue SystemStackError raise Bolt :: Error . new ( "Stack depth exceeded while recursively resolving references." , "bolt/recursive-reference-loop" ) end
Evaluate all _plugin references in a data structure.
Evaluate all _plugin references in a data structure .
data
<not_specific>