Sha256: d0382feb4155b7b3d794c42d0a6bf8b4278c007caaa6460c64ccf55cd231123a

Contents?: true

Size: 370 Bytes

Versions: 22

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module Anyway
  using RubyNext

  module Loaders
    class Env < Base
      def call(env_prefix:, **_options)
        env = ::Anyway::Env.new(type_cast: ::Anyway::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

22 entries across 22 versions & 2 rubygems

Version Path
anyway_config-2.6.4 lib/anyway/loaders/env.rb
anyway_config-2.6.3 lib/anyway/loaders/env.rb
anyway_config-2.6.2 lib/anyway/loaders/env.rb
anyway_config-2.6.1 lib/anyway/loaders/env.rb
anyway_config-2.6.0 lib/anyway/loaders/env.rb
runger_config-2.7.0 lib/anyway/loaders/env.rb
runger_config-2.6.1 lib/anyway/loaders/env.rb
runger_config-2.6.0 lib/anyway/loaders/env.rb
anyway_config-2.5.4 lib/anyway/loaders/env.rb
anyway_config-2.5.3 lib/anyway/loaders/env.rb
anyway_config-2.5.2 lib/anyway/loaders/env.rb
anyway_config-2.5.1 lib/anyway/loaders/env.rb
anyway_config-2.5.0 lib/anyway/loaders/env.rb
anyway_config-2.4.2 lib/anyway/loaders/env.rb
anyway_config-2.4.1 lib/anyway/loaders/env.rb
anyway_config-2.4.0 lib/anyway/loaders/env.rb
anyway_config-2.3.1 lib/anyway/loaders/env.rb
anyway_config-2.3.0 lib/anyway/loaders/env.rb
anyway_config-2.2.3 lib/anyway/loaders/env.rb
anyway_config-2.2.2 lib/anyway/loaders/env.rb