Sha256: f5b29def6101e9c290a4710461112769060783a8048e6800b849f7e201457178

Contents?: true

Size: 315 Bytes

Versions: 9

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

module Anyway
  using RubyNext

  module Loaders
    class Env < Base
      def call(env_prefix:, **_options)
        Anyway.env.fetch_with_trace(env_prefix).then do |(conf, trace)|
          Tracing.current_trace&.merge!(trace)
          conf
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
anyway_config-2.1.0 lib/anyway/loaders/env.rb
anyway_config-2.0.6 lib/anyway/loaders/env.rb
anyway_config-2.0.5 lib/anyway/loaders/env.rb
anyway_config-2.0.4 lib/anyway/loaders/env.rb
anyway_config-2.0.3 lib/anyway/loaders/env.rb
anyway_config-2.0.2 lib/anyway/loaders/env.rb
anyway_config-2.0.1 lib/anyway/loaders/env.rb
anyway_config-2.0.0 lib/anyway/loaders/env.rb
anyway_config-2.0.0.rc1 lib/anyway/loaders/env.rb