Module: Conjur::PathBased
Overview
This module provides methods for determining Conjur id components from an asset's REST URL.
Instance Method Summary collapse
-
#account ⇒ String
Return the Conjur organizational account for this role or resource.
-
#kind ⇒ String
Return the kind for this role or resource.
Instance Method Details
#account ⇒ String
Return the Conjur organizational account for this role or resource. The account
is the first token in a fully qualified Conjur id, like "account:kind:identifier"
34 35 36 |
# File 'lib/conjur/path_based.rb', line 34 def account match_path(0..0) end |
#kind ⇒ String
Return the kind for this role or resource. The kind partitions the space of roles and resources, generally
according to their purpose (for example, roles representing users have kind 'user'
). The kind
of a role or
resource is the second token of a fully qualified Conjur id, like "account:kind:identifier"
.
51 52 53 |
# File 'lib/conjur/path_based.rb', line 51 def kind match_path(2..2) end |