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

Making the naming even less brittle

This commit is contained in:
Gerred Dillon 2011-03-31 02:09:53 -06:00
parent 66d155d3cc
commit 83ddf309d6

View file

@ -33,7 +33,7 @@ module Fog
true
end
def write(path="#{ENV['HOME']}/.ssh/fog_#{name}.pem")
def write(path="#{ENV['HOME']}/.ssh/fog_#{Fog.credential.to_s}_#{name}.pem")
if writable?
split_private_key = private_key.split(/\n/)
key_file = File.new(path, "w")