Sha256: 0d721f2ba88419d385594c1a83661cf8b91dd0422325fd949c1710d9650aecd2

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

module Deadpull
  module Values
    class Environment < Base
      extend Dry::Initializer

      option :environment, optional: true

      def concretize
        environment || ENV['DEADPULL_ENV'] || ENV['RAILS_ENV'] || 'development'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
deadpull-0.1.0 lib/deadpull/values/environment.rb