Class: ProxyRb::PasswordFetchers::ChainingPasswordFetcher

Inherits:
BasicPasswordFetcher show all
Includes:
Contracts::Builtin, Contracts::Core
Defined in:
lib/proxy_rb/password_fetchers/chaining_password_fetcher.rb

Overview

… process environment

Instance Method Summary collapse

Constructor Details

#initialize(fetchers) ⇒ ChainingPasswordFetcher

Prefix of key in Environment



19
20
21
# File 'lib/proxy_rb/password_fetchers/chaining_password_fetcher.rb', line 19

def initialize(fetchers)
  @fetchers = Array(fetchers)
end

Instance Method Details

#call(user_name) ⇒ Object



26
27
28
# File 'lib/proxy_rb/password_fetchers/chaining_password_fetcher.rb', line 26

def call(user_name)
  fetch_password_for_user(user_name)
end