Sha256: 1c2e575d5a26500ef5c08eba8d5b7093322431e4b811e775346b90c92f43f29d

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

module Runger
  module Loaders
    class Env < 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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
runger_config-4.0.0 lib/runger/loaders/env.rb