Sha256: e484cc5ad8a4b5e36e2b8f4e435d37eb04210ace528ca0deee057b73c329d64b

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

module Conjur::DSL2::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

3 entries across 3 versions & 1 rubygems

Version Path
conjur-asset-dsl2-0.6.1 lib/conjur/dsl2/executor/give.rb
conjur-asset-dsl2-0.6.0 lib/conjur/dsl2/executor/give.rb
conjur-asset-dsl2-0.5.0 lib/conjur/dsl2/executor/give.rb