class Conjur::DSL2::Executor::Permit
Permit
a privilege with a POST request to the permit
url of the resource, with the privilege and role as parameters. grant_option
is also provided if it is explicitly stated on the Permit
record.
Public Instance Methods
execute()
click to toggle source
# File lib/conjur/dsl2/executor/permit.rb, line 6 def execute parameters = { "privilege" => statement.privilege, "role" => statement.role.role.roleid } parameters['grant_option'] = statement.role.admin unless statement.role.admin.nil? action({ 'method' => 'post', 'path' => "#{resource_path(statement.resource)}?permit", 'parameters' => parameters }) end