Module: Conjur::Policy::Executor::Annotate
- Included in:
- CreateRecord, CreateResource, Update
- Defined in:
- lib/conjur/policy/executor/base.rb
Instance Method Summary collapse
Instance Method Details
#annotate ⇒ Object
40 41 42 43 44 45 46 47 48 |
# 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 ⇒ Object
50 51 52 53 54 55 |
# 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 |