mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
ab04e13314
- create_ssh_key - list_ssh_keys
26 lines
482 B
Ruby
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
|