Class: Rugged::Credentials::UserPassword

Inherits:
Object
  • Object
show all
Defined in:
lib/rugged/credentials.rb,
ext/rugged/rugged_cred.c

Overview

A plain-text username and password credential object.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ UserPassword

Returns a new instance of UserPassword.



5
6
7
# File 'lib/rugged/credentials.rb', line 5

def initialize(options)
  @username, @password = options[:username], options[:password]
end

Instance Method Details

#call(url, username_from_url, allowed_types) ⇒ Object



9
10
11
# File 'lib/rugged/credentials.rb', line 9

def call(url, username_from_url, allowed_types)
  self
end