Sha256: c3aa243587dfe89bc1810b71675bd0b05d326c12b9dca9de61c6fe6ed77f8f6b

Contents?: true

Size: 354 Bytes

Versions: 8

Compression:

Stored size: 354 Bytes

Contents

module Conjur::Policy::Executor
  # Change the owner of a resource with a PUT request to the resource path, specifying the new owner.
  class Give < Base
    def execute
      action({
        'method' => 'put',
        'path' => resource_path(statement.resource),
        'parameters' => { "owner" => statement.owner.roleid }
      })
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
conjur-asset-policy-0.13.0 lib/conjur/policy/executor/give.rb
conjur-asset-policy-0.12.0 lib/conjur/policy/executor/give.rb
conjur-asset-policy-0.11.0 lib/conjur/policy/executor/give.rb
conjur-asset-policy-0.8.3 lib/conjur/policy/executor/give.rb
conjur-asset-policy-0.8.2 lib/conjur/policy/executor/give.rb
conjur-asset-policy-0.8.1 lib/conjur/policy/executor/give.rb
conjur-asset-policy-0.8.0 lib/conjur/policy/executor/give.rb
conjur-asset-policy-0.7.1 lib/conjur/policy/executor/give.rb