1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fog::Compute::Server#private_key=

Useful for automation purposes where you have the private key
stored in a database and not on disk.
This commit is contained in:
Edward Muller 2012-05-23 15:18:16 -07:00
parent 3e24a47710
commit 9f25fcd2e4

View file

@ -4,6 +4,10 @@ module Fog
module Compute
class Server < Fog::Model
def private_key=(key_data)
@private_key = key_data
end
def scp(local_path, remote_path, upload_options = {})
require 'net/scp'
requires :public_ip_address, :username