Skip to content

Commit

Permalink
Add utility method to credential store for adding ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Feb 28, 2024
1 parent a2558a6 commit 4b39114
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/GToolkit4Git/IceCredentialStore.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Extension { #name : #IceCredentialStore }

{ #category : #'*GToolkit4Git' }
IceCredentialStore >> addSshKeyForHost: aHostSymbol inFile: aFileString [
| credentials |
credentials := IceSshCredentials new
host: aHostSymbol;
username: 'git';
publicKey: aFileString , '.pub';
privateKey: aFileString;
yourself.
self storeSshCredential: credentials forHostname: credentials host.
IceCredentialsProvider useCustomSsh: true
]

0 comments on commit 4b39114

Please sign in to comment.