Module: Conjur::DSL2::Types::ActsAsRole

Included in:
Ruby::Policy, Group, Host, Layer, ManagedRole, Policy, Role, User
Defined in:
lib/conjur/dsl2/types/records.rb

Instance Method Summary collapse

Instance Method Details

#role?Boolean

Returns:

  • (Boolean)


73
74
75
# File 'lib/conjur/dsl2/types/records.rb', line 73

def role?
  true
end

#role_idObject



81
82
83
# File 'lib/conjur/dsl2/types/records.rb', line 81

def role_id
  id
end

#role_kindObject



77
78
79
# File 'lib/conjur/dsl2/types/records.rb', line 77

def role_kind
  self.class.name.split("::")[-1].underscore
end

#roleid(default_account = nil) ⇒ Object



69
70
71
# File 'lib/conjur/dsl2/types/records.rb', line 69

def roleid  = nil
  [  || , role_kind, id ].join(":")
end