Sha256: 89ec3abf10f06d20b3b88e314a54c7fe52d9a794c7c9bb393c35b53824994131

Contents?: true

Size: 1.06 KB

Versions: 49

Compression:

Stored size: 1.06 KB

Contents

module Rugged
  module Credentials
    # A plain-text username and password credential object.
    class UserPassword
      def initialize(options)
        @username, @password = options[:username], options[:password]
      end

      def call(url, username_from_url, allowed_types)
        self
      end
    end

    # A ssh key credential object that can optionally be passphrase-protected
    class SshKey
      def initialize(options)
        @username, @publickey, @privatekey, @passphrase = options[:username], options[:publickey], options[:privatekey], options[:passphrase]
      end

      def call(url, username_from_url, allowed_types)
        self
      end
    end

    class SshKeyFromAgent
      def initialize(options)
        @username = options[:username]
      end

      def call(url, username_from_url, allowed_types)
        self
      end
    end

    # A "default" credential usable for Negotiate mechanisms like NTLM or
    # Kerberos authentication
    class Default
      def call(url, username_from_url, allowed_types)
        self
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
rugged-0.24.6.1 lib/rugged/credentials.rb
rugged-0.24.5 lib/rugged/credentials.rb
rugged-0.25.0b10 lib/rugged/credentials.rb
rugged-0.25.0b9 lib/rugged/credentials.rb
rugged-0.25.0b8 lib/rugged/credentials.rb
rugged-0.25.0b7 lib/rugged/credentials.rb
rugged-0.25.0b6 lib/rugged/credentials.rb
rugged-0.25.0b5 lib/rugged/credentials.rb
rugged-0.25.0b4 lib/rugged/credentials.rb
rugged-0.25.0b3 lib/rugged/credentials.rb
rugged-0.25.0b2 lib/rugged/credentials.rb
rugged-0.25.0b1 lib/rugged/credentials.rb
rugged-0.24.0 lib/rugged/credentials.rb
rugged-0.24.0b14 lib/rugged/credentials.rb
rugged-0.24.0b13 lib/rugged/credentials.rb
rdavila-rugged-0.24.0b13 lib/rugged/credentials.rb
rugged-0.24.0b12 lib/rugged/credentials.rb
rugged-0.24.0b11 lib/rugged/credentials.rb
rugged-0.24.0b9 lib/rugged/credentials.rb
rugged-0.24.0b8 lib/rugged/credentials.rb