server/lib/deltacloud/runner.rb
# Right now there is no way howto pass private_key using String
# eg. without saving key to temporary file.
Right now there is no way howto pass private_key using String
eg. without saving key to temporary file.
Right now there is no way howto pass private_key using String eg . without saving key to temporary file .
def keyfile(key)
        keyfile = Tempfile.new("ec2_private.key")
        key_material = ""
        key.split("\n").each { |line| key_material+="#{line.strip}\n" if line.strip.size>0 }
        keyfile.write(key_material) && keyfile.close
        puts "[*] Using #{keyfile.path} as private key"
        keyfile.path
      end
def keyfile ( key ) keyfile = Tempfile . new ( "ec2_private.key" ) key_material = "" key . split ( "\n" ) . each { | line | key_material += "#{line.strip}\n" if line . strip . size > 0 } keyfile . write ( key_material ) && keyfile . close puts "[*] Using #{keyfile.path} as private key" keyfile . path end
Right now there is no way howto pass private_key using String
eg.
Right now there is no way howto pass private_key using String eg .
key
<not_specific>