module Conjur::Policy::Executor::Annotate

Public Instance Methods

annotate() click to toggle source
# File lib/conjur/policy/executor/base.rb, line 40
def annotate
  Array(annotate_record.annotations).each do |k,v|
    action({
      'method' => 'put',
      'path' => update_annotation_path,
      'parameters' => { "name" => k, "value" => v }
    })
  end
end
update_annotation_path() click to toggle source
# File lib/conjur/policy/executor/base.rb, line 50
def update_annotation_path
  [ "authz", annotate_record.account,
      "annotations",
      annotate_record.resource_kind,
      path_escape(annotate_record.id) ].join('/')
end