Sha256: 1b32767b8e1d7b4f7c6a62769c6977d7c3ca9e82fc6b19e5f1f7716821066a57
Contents?: true
Size: 684 Bytes
Versions: 4
Compression:
Stored size: 684 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Register a public key in a keypair under a certain name # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/registerSSHKeyPair.html] def register_ssh_key_pair(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'registerSSHKeyPair') else options.merge!('command' => 'registerSSHKeyPair', 'name' => args[0], 'publickey' => args[1]) end request(options) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems