class Conjur::DSL2::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/dsl2/executor/give.rb, line 4
def execute
  action({
    'method' => 'put',
    'path' => resource_path(statement.resource),
    'parameters' => { "owner" => statement.owner.roleid }
  })
end