Sha256: 4afd77463332a842c053acb51493a2a856409183ffe41141a36be86d476519bd

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

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

      param :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.1 lib/deadpull/values/environment.rb