Sha256: 5cbfcf2057b1a31a003eeb81a74d446d9315814e43113775ab0021d0a5c5b25b

Contents?: true

Size: 538 Bytes

Versions: 9

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

# Load gem Config if present
# @see https://rubygems.org/gems/config

begin
  require 'config'

  if defined?(Config)
    config_conf = [
      File.join(Dir.pwd, 'config', 'settings.yml'),
      File.join(Dir.pwd, 'config', 'settings', "#{ENV['RAILS_ENV']}.yml")
    ]
    Config.load_and_set_settings(config_conf)
  end
rescue LoadError => exception
  puts 'Custom configuration is not present,' \
       " use default configuration. (#{exception})"
rescue StandardError => exception
  puts exception
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-4.0.1 lib/rrj/tools/bin/config.rb
ruby_rabbitmq_janus-4.0.1.pre.1265973744 lib/rrj/tools/bin/config.rb
ruby_rabbitmq_janus-4.0.1.pre.1265506307 lib/rrj/tools/bin/config.rb
ruby_rabbitmq_janus-4.0.1.pre.1265140558 lib/rrj/tools/bin/config.rb
ruby_rabbitmq_janus-4.0.0 lib/rrj/tools/bin/config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001345090 lib/rrj/tools/bin/config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001181479 lib/rrj/tools/bin/config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001132533 lib/rrj/tools/bin/config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001107243 lib/rrj/tools/bin/config.rb