Class: Rugged::Credentials::SshKey

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(options) ⇒ SshKey

Returns a new instance of SshKey.



16
17
18
# File 'lib/rugged/credentials.rb', line 16

def initialize(options)
  @username, @publickey, @privatekey, @passphrase = options[:username], options[:publickey], options[:privatekey], options[:passphrase]
end

Instance Method Details

#call(url, username_from_url, allowed_types) ⇒ Object



20
21
22
# File 'lib/rugged/credentials.rb', line 20

def call(url, username_from_url, allowed_types)
  self
end