Class: Rugged::Credentials::SshKey
- Inherits:
-
Object
- Object
- Rugged::Credentials::SshKey
- Defined in:
- lib/rugged/credentials.rb,
ext/rugged/rugged_cred.c
Overview
A ssh key credential object that can optionally be passphrase-protected
Instance Method Summary collapse
- #call(url, username_from_url, allowed_types) ⇒ Object
-
#initialize(options) ⇒ SshKey
constructor
A new instance of SshKey.
Constructor Details
#initialize(options) ⇒ SshKey
Returns a new instance of SshKey.
21 22 23 |
# File 'lib/rugged/credentials.rb', line 21 def initialize() @username, @publickey, @privatekey, @passphrase = [:username], [:publickey], [:privatekey], [:passphrase] end |
Instance Method Details
#call(url, username_from_url, allowed_types) ⇒ Object
25 26 27 |
# File 'lib/rugged/credentials.rb', line 25 def call(url, username_from_url, allowed_types) self end |