Class: Conjur::Policy::Executor::CreateVariable
- Inherits:
-
CreateRecord
- Object
- Base
- Create
- CreateRecord
- Conjur::Policy::Executor::CreateVariable
- Defined in:
- lib/conjur/policy/executor/create.rb
Overview
When creating a variable, set default values for the mime_type
and kind
.
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
64 65 66 67 68 69 |
# File 'lib/conjur/policy/executor/create.rb', line 64 def create_parameters super.tap do |params| params['mime_type'] ||= 'text/plain' params['kind'] ||= 'secret' end end |