Class: Flo::Config::LazyCreds

Inherits:
Object
  • Object
show all
Defined in:
lib/flo/config.rb

Overview

A placeholder for credentials that can be evaluated at a later time

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ lambda

Returns a lambda that takes a credential store for a specific provider as an argument. This prevents providers from accessing the credentials for another provider

Parameters:

  • key (Symbol, String)

Returns:

  • (lambda)


24
25
26
# File 'lib/flo/config.rb', line 24

def [](key)
  lambda { |cred_store| cred_store[key] }
end