Class: Conjur::Policy::Executor::Give

Inherits:
Base show all
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

#actions, #api, #statement

Instance Method Summary collapse

Methods inherited from Base

#action, #initialize, #resource_path, #role_path

Methods included from Logger

included

Constructor Details

This class inherits a constructor from Conjur::Policy::Executor::Base

Instance Method Details

#executeObject



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