lib/rrx_config/environment.rb in rrx_config-0.1.1 vs lib/rrx_config/environment.rb in rrx_config-0.1.2

- old
+ new

@@ -1,7 +1,14 @@ # frozen_string_literal: true +require_relative './error' module RrxConfig + class EnvironmentError < Error + def initialize(msg) + super("Invalid environment '#{msg}'") + end + end + class Environment < ActiveSupport::StringInquirer RRX_ENVIRONMENT_VARIABLE = 'RRX_ENVIRONMENT' RRX_ENVIRONMENT_DEFAULT = 'development' SHORT_NAMES = {