Sha256: 3983c3019957744fb59c3f4ce49edb397a1727f44c069cc04533e9da49b596a4

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

module Conjur::Policy::Types
  class Give < Base
    attribute :resource, kind: :resource
    attribute :owner, kind: :role

    self.description = %(
Give ownership of a resource to a [Role](#reference/role).
(compare: [Grant](#reference/grant))

[More](/key_concepts/rbac.html) on role-based access control in Conjur.
)

    self.example = %(
- !user Link
- !secret song-of-storms

- !give
    resource: !secret song-of-storms
    owner: !user Link
)

    def to_s
      "Give #{resource} to #{owner}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
conjur-asset-policy-0.8.3 lib/conjur/policy/types/give.rb
conjur-asset-policy-0.8.2 lib/conjur/policy/types/give.rb
conjur-asset-policy-0.8.1 lib/conjur/policy/types/give.rb
conjur-asset-policy-0.8.0 lib/conjur/policy/types/give.rb
conjur-asset-policy-0.7.1 lib/conjur/policy/types/give.rb