class Conjur::Policy::Executor::Give

Change the owner of a resource with a PUT request to the resource path, specifying the new owner.

Public Instance Methods

execute() click to toggle source
# 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