Class: ProxyRb::PasswordFetchers::EnvironmentPasswordFetcher
- Inherits:
-
BasicPasswordFetcher
- Object
- BasicPasswordFetcher
- ProxyRb::PasswordFetchers::EnvironmentPasswordFetcher
- Includes:
- Contracts::Builtin, Contracts::Core
- Defined in:
- lib/proxy_rb/password_fetchers/environment_password_fetcher.rb
Overview
… process environment
Instance Method Summary collapse
- #call(user_name) ⇒ Object
-
#initialize(prefix:) ⇒ EnvironmentPasswordFetcher
constructor
Prefix of key in Environment.
Constructor Details
#initialize(prefix:) ⇒ EnvironmentPasswordFetcher
Prefix of key in Environment
20 21 22 |
# File 'lib/proxy_rb/password_fetchers/environment_password_fetcher.rb', line 20 def initialize(prefix:) @prefix = prefix end |
Instance Method Details
#call(user_name) ⇒ Object
27 28 29 30 31 |
# File 'lib/proxy_rb/password_fetchers/environment_password_fetcher.rb', line 27 def call(user_name) UserPasswords::EnvironmentUserPassword.new( fetch_password_for_user(user_name) ).to_s end |