Module: Dry::Credentials
- Defined in:
- lib/dry/credentials.rb,
lib/dry/credentials/yaml.rb,
lib/dry/credentials/errors.rb,
lib/dry/credentials/helpers.rb,
lib/dry/credentials/version.rb,
lib/dry/credentials/settings.rb,
lib/dry/credentials/encryptor.rb,
lib/dry/credentials/extension.rb
Defined Under Namespace
Classes: Encryptor, EnvNotSetError, Extension, Helpers, InvalidEncryptedObjectError, KeyNotSetError, Settings, UnrecognizedSettingError, YAML, YAMLFormatError
Constant Summary
collapse
- VERSION =
"0.2.1"
Instance Method Summary
collapse
Instance Method Details
#__credentials_extension__ ⇒ Object
30
31
32
|
# File 'lib/dry/credentials.rb', line 30
def __credentials_extension__
@__credentials_extension__ ||= Extension.new
end
|
#credentials(&block) ⇒ Object
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/dry/credentials.rb', line 19
def credentials(&block)
if block
__credentials_extension__
.instance_variable_get('@settings')
.instance_eval(&block)
self
else
__credentials_extension__.load!
end
end
|