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.



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

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

Instance Method Details

#call(url, username_from_url, allowed_types) ⇒ Object



14
15
16
# File 'lib/rugged/credentials.rb', line 14

def call(url, username_from_url, allowed_types)
  self
end