Class: Conjur::Policy::Executor::CreateVariable

Inherits:
CreateRecord show all
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

#actions, #api, #statement

Instance Method Summary collapse

Methods inherited from CreateRecord

#annotate_record, #attribute_names, #create_path, #execute, #kind_path

Methods included from Annotate

#annotate, #update_annotation_path

Methods inherited from Create

#record

Methods inherited from Base

#action, #execute, #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

#create_parametersObject



86
87
88
89
90
91
# File 'lib/conjur/policy/executor/create.rb', line 86

def create_parameters
  super.tap do |params|
    params['mime_type'] ||= 'text/plain'
    params['kind'] ||= 'secret'
  end
end