Class: Runger::Loaders::Base
- Inherits:
-
Object
- Object
- Runger::Loaders::Base
- Includes:
- Tracing
- Defined in:
- lib/runger/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.
12 13 14 |
# File 'lib/runger/loaders/base.rb', line 12 def initialize(local:) @local = local end |
Class Method Details
.call(local: Runger::Settings.use_local_files, **options) ⇒ Object
7 8 9 |
# File 'lib/runger/loaders/base.rb', line 7 def call(local: Runger::Settings.use_local_files, **) new(local:).call(**) end |
Instance Method Details
#use_local? ⇒ Boolean
16 |
# File 'lib/runger/loaders/base.rb', line 16 def use_local? = @local == true |