Module: Conjur::DSL2::Executor::ActingAs

Included in:
CreateResource, CreateRole
Defined in:
lib/conjur/dsl2/executor/create.rb

Overview

When creating a raw Role or Resource, the owner of the new record is specified by the acting_as parameter.

Instance Method Summary collapse

Instance Method Details

#acting_as_parametersObject



75
76
77
78
79
# File 'lib/conjur/dsl2/executor/create.rb', line 75

def acting_as_parameters
  {}.tap do |params|
    params["acting_as"] = record.owner.roleid if record.owner
  end
end