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.



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

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



25
26
27
# File 'lib/rugged/credentials.rb', line 25

def call(url, username_from_url, allowed_types)
  self
end