Class: Conjur::Policy::Executor::CreateHostFactory
- Inherits:
-
CreateRecord
- Object
- Base
- Create
- CreateRecord
- Conjur::Policy::Executor::CreateHostFactory
- Defined in:
- lib/conjur/policy/executor/create.rb
Overview
When creating a host factory, the roleid
and layer
are required.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from CreateRecord
#annotate_record, #create_path, #execute, #kind_path
Methods included from Annotate
#annotate, #update_annotation_path
Methods inherited from Create
Methods inherited from Base
#action, #execute, #initialize, #resource_path, #role_path
Methods included from Logger
Constructor Details
This class inherits a constructor from Conjur::Policy::Executor::Base
Instance Method Details
#create_parameters ⇒ Object
54 55 56 57 58 59 |
# File 'lib/conjur/policy/executor/create.rb', line 54 def create_parameters super.tap do |params| params['roleid'] = record.role.roleid params['layers'] = Array(record.layers).map(&:id) end end |