Class: Conjur::Policy::Executor::Give
- Defined in:
- lib/conjur/policy/executor/give.rb
Overview
Change the owner of a resource with a PUT request to the resource path, specifying the new owner.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#action, #initialize, #resource_path, #role_path
Methods included from Logger
Constructor Details
This class inherits a constructor from Conjur::Policy::Executor::Base
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/conjur/policy/executor/give.rb', line 4 def execute action({ 'method' => 'put', 'path' => resource_path(statement.resource), 'parameters' => { "owner" => statement.owner.roleid } }) end |