Skip to content
Extraits de code Groupes Projets
Valider 66142856 rédigé par ilya's avatar ilya
Parcourir les fichiers

params string now a method

parent 0df76daa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -100,7 +100,12 @@ class User < Person
def generate_key
puts "Generating key"
ctx = GPGME::Ctx.new
paramstring = "<GnupgKeyParms format=\"internal\">
ctx.genkey(paramstring, nil, nil)
end
def paramstring
"<GnupgKeyParms format=\"internal\">
Key-Type: DSA
Key-Length: 512
Subkey-Type: ELG-E
......@@ -110,7 +115,6 @@ Name-Comment: #{self.url}
Name-Email: #{self.email}
Expire-Date: 0
</GnupgKeyParms>"
ctx.genkey(paramstring, nil, nil)
end
end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter