Method: Puppet::Transport::NexusRestApi#put_request
- Defined in:
- lib/puppet/transport/nexus_rest_api.rb
#put_request(_context, endpoint, data) ⇒ Object
JSON put request against the given api endpoint
60 61 62 63 64 65 66 67 68 69 |
# File 'lib/puppet/transport/nexus_rest_api.rb', line 60 def put_request(_context, endpoint, data) Puppet.runtime[:http].put( build_uri(endpoint), Puppet::Util::Json.dump(data), headers: { 'Content-Type' => 'application/json' }, options: , ) end |