Sha256: cacf2a22e62d0537b8515c0c89bf03b150b1bda7d6634222785c4f0dd497656d
Contents?: true
Size: 791 Bytes
Versions: 4
Compression:
Stored size: 791 Bytes
Contents
module Fog module Compute class Gridscale class Real def sshkey_create(name, sshkey, options = {}) create_options = { :name => name, :sshkey => sshkey, } # create_options[:labels] = options[:labels] || [] if options[:labels] create_options[:labels] = options[:labels] end encoded_body = Fog::JSON.encode(create_options) request( :expects => [202], :headers => { 'Content-Type' => "application/json; charset=UTF-8", }, :method => 'POST', :path => '/objects/sshkeys', :body => encoded_body, ) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems