Class: Anyway::Loaders::Base
- Inherits:
-
Object
- Object
- Anyway::Loaders::Base
- Includes:
- Tracing
- Defined in:
- lib/anyway/loaders/base.rb
Direct Known Subclasses
Doppler, EJSON, Env, YAML, Rails::Loaders::Credentials, Rails::Loaders::Secrets
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(local:) ⇒ Base
constructor
A new instance of Base.
- #use_local? ⇒ Boolean
Methods included from Tracing
capture, current_trace, current_trace_source, source_stack, trace!, trace_stack, with_trace_source
Constructor Details
#initialize(local:) ⇒ Base
Returns a new instance of Base.
14 15 16 |
# File 'lib/anyway/loaders/base.rb', line 14 def initialize(local:) @local = local end |
Class Method Details
.call(local: Anyway::Settings.use_local_files, **opts) ⇒ Object
9 10 11 |
# File 'lib/anyway/loaders/base.rb', line 9 def call(local: Anyway::Settings.use_local_files, **opts) new(local:).call(**opts) end |
Instance Method Details
#use_local? ⇒ Boolean
18 |
# File 'lib/anyway/loaders/base.rb', line 18 def use_local?() = @local == true |