1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/digitalocean/requests/compute/create_ssh_key.rb
Sergio Rubio ab04e13314 [digitalocean|compute] added some more request
- create_ssh_key
- list_ssh_keys
2013-03-31 22:16:10 +02:00

26 lines
482 B
Ruby

module Fog
module Compute
class DigitalOcean
class Real
def create_ssh_key( name, pub_key )
request(
:expects => [200],
:method => 'GET',
:path => 'droplets/new',
:query => { 'name' => name, 'ssh_pub_key' => pub_key }
)
end
end
class Mock
def create_ssh_key( name, pub_key )
Fog::Mock.not_implemented
end
end
end
end
end