Class: Conjur::Policy::Executor::Revoke

Inherits:
Base show all
Defined in:
lib/conjur/policy/executor/revoke.rb

Instance Attribute Summary

Attributes inherited from Base

#actions, #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



3
4
5
6
7
8
9
# File 'lib/conjur/policy/executor/revoke.rb', line 3

def execute
  action({
    'method' => 'delete',
    'path' => "#{role_path(statement.role)}?members",
    'parameters' => { "member" => statement.member.roleid }
  })
end