lib/runger/loaders/env.rb in runger_config-4.0.0 vs lib/runger/loaders/env.rb in runger_config-5.0.0
- old
+ new
@@ -1,16 +1,12 @@
# frozen_string_literal: true
-module Runger
- module Loaders
- class Env < Base
- def call(env_prefix:, **_options)
- env = ::Runger::Env.new(type_cast: ::Runger::NoCast)
+class Runger::Loaders::Env < Runger::Loaders::Base
+ def call(env_prefix:, **_options)
+ env = ::Runger::Env.new(type_cast: ::Runger::NoCast)
- env.fetch_with_trace(env_prefix).then do |(conf, trace)|
- Tracing.current_trace&.merge!(trace)
- conf
- end
- end
+ env.fetch_with_trace(env_prefix).then do |(conf, trace)|
+ ::Runger::Tracing.current_trace&.merge!(trace)
+ conf
end
end
end