Class: Conjur::Policy::AnnotationSubstitutionResolver

Inherits:
SubstitutionResolver show all
Defined in:
lib/conjur/policy/resolver.rb

Constant Summary

Constants inherited from SubstitutionResolver

SubstitutionResolver::SUBSTITUTIONS

Instance Attribute Summary

Attributes inherited from Resolver

#account, #namespace, #ownerid

Instance Method Summary collapse

Methods inherited from SubstitutionResolver

#resolve

Methods inherited from Resolver

#initialize, resolve

Constructor Details

This class inherits a constructor from Conjur::Policy::Resolver

Instance Method Details

#resolve_field(record, visited) ⇒ Object



130
131
132
133
134
135
136
137
138
# File 'lib/conjur/policy/resolver.rb', line 130

def resolve_field record, visited
  if record.respond_to?(:annotations) && (annotations = record.annotations)
    annotations.each do |k,v|
      substitute! v
    end
  end

  traverse record.referenced_records, visited, method(:resolve_field), method(:on_resolve_policy)
end