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:
parent
3e24a47710
commit
9f25fcd2e4
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue