class Rugged::Credentials::SshKey

A ssh key credential object that can optionally be passphrase-protected

Public Class Methods

new(options) click to toggle source
# File lib/rugged/credentials.rb, line 21
def initialize(options)
  @username, @publickey, @privatekey, @passphrase = options[:username], options[:publickey], options[:privatekey], options[:passphrase]
end

Public Instance Methods

call(url, username_from_url, allowed_types) click to toggle source
# File lib/rugged/credentials.rb, line 25
def call(url, username_from_url, allowed_types)
  self
end