    # File lib/fog/openstack/models/compute/key_pair.rb, line 39
            def write(path="#{ENV['HOME']}/.ssh/fog_#{Fog.credential.to_s}_#{name}.pem")

              if writable?
                split_private_key = private_key.split(/\n/)
                File.open(path, "w") do |f|
                  split_private_key.each {|line| f.puts line}
                  f.chmod 0600
                end
                "Key file built: #{path}"
              else
                "Invalid private key"
              end
            end