Sha256: 4e35a649e7e5d5e4b22510698c39b9407d83ccf4b42d3199229ef4b3e7512449

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 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(default_account) }
      })
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
conjur-asset-dsl2-0.4.4 lib/conjur/dsl2/executor/give.rb
conjur-asset-dsl2-0.4.3 lib/conjur/dsl2/executor/give.rb
conjur-asset-dsl2-0.4.2 lib/conjur/dsl2/executor/give.rb
conjur-asset-dsl2-0.3.2 lib/conjur/dsl2/executor/give.rb
conjur-asset-dsl2-0.3.1 lib/conjur/dsl2/executor/give.rb
conjur-asset-dsl2-0.3.0 lib/conjur/dsl2/executor/give.rb