Class: Conjur::Policy::Executor::CreateRole

Inherits:
Create show all
Includes:
ActingAs
Defined in:
lib/conjur/policy/executor/create.rb

Overview

Create a new Role with a PUT request to the role path.

Instance Attribute Summary

Attributes inherited from Base

#actions, #api, #statement

Instance Method Summary collapse

Methods included from ActingAs

#acting_as_parameters

Methods inherited from Create

#record

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



132
133
134
135
136
137
138
# File 'lib/conjur/policy/executor/create.rb', line 132

def execute
  action({
    'method' => 'put',
    'path' => role_path(statement.record),
    'parameters' => acting_as_parameters
  })
end