lib/yle_tf/config/migration.rb
# Returns a `Proc` to print deprecation warnings unless denied by an env var
Returns a `Proc` to print deprecation warnings unless denied by an env var
Returns a ` Proc ` to print deprecation warnings unless denied by an env var
def deprecation_warning
        return nil if ENV['TF_OLD_CONFIG_WARNINGS'] == 'false'
        lambda do |new_config|
          Logger.warn("Old configuration found in #{config_source}")
          Logger.warn("Please migrate to relevant parts of:\n" \
                      "#{sanitize_config(new_config)}")
          Logger.warn(
            'See https://github.com/Yleisradio/yle_tf/wiki/Migrating-Configuration for more details'
          )
        end
      end
def deprecation_warning return nil if ENV [ 'TF_OLD_CONFIG_WARNINGS' ] == 'false' lambda do | new_config | Logger . warn ( "Old configuration found in #{config_source}" ) Logger . warn ( "Please migrate to relevant parts of:\n" "#{sanitize_config(new_config)}" ) Logger . warn ( 'See https://github.com/Yleisradio/yle_tf/wiki/Migrating-Configuration for more details' ) end end
Returns a `Proc` to print deprecation warnings unless denied by an env var
Returns a ` Proc ` to print deprecation warnings unless denied by an env var