Method: Rundeck::Client::Key#update_private_key

Defined in:
lib/rundeck/client/key.rb

#update_private_key(path, key, options = {}) ⇒ Rundeck::ObjectifiedHash

Update a private key

Examples:

key = "-----BEGIN RSA PRIVATE KEY-----\nProc-Type:..."
Rundeck.update_private_key('path', key)

Parameters:

Options Hash (options):

  • :query (Hash)

    The parameters to pass with the request Use this hash to specify Rundeck parameters.

    • query: { project: ‘anvils’, id: ‘123456’ }

Returns:

Raises:



111
112
113
114
# File 'lib/rundeck/client/key.rb', line 111

def update_private_key(path, key, options = {})
  key_check(path, 'private', options)
  create_or_update_key(path, key, 'private', 'put', options)
end