Sha256: 9965dc09cda9ebb0fadb0bff23e9bbb11a7b00e17d6e9a6130ab95dd704b425e

Contents?: true

Size: 990 Bytes

Versions: 63

Compression:

Stored size: 990 Bytes

Contents

unless defined?(YMDP_TEST)
  CONFIG = YMDP::Configuration::Config.new unless defined?(CONFIG)
  SERVERS = YMDP::Configuration::Servers.new unless defined?(SERVERS)

  @content_variables = YAML.load_file("#{BASE_PATH}/config/content.yml") if File.exists?("#{BASE_PATH}/config/content.yml")

  @jslint_settings = File.read("#{BASE_PATH}/config/jslint.js") if File.exists?("#{BASE_PATH}/config/jslint.js")

  YMDP::Base.configure do |config|
    config.username = CONFIG["username"]
    config.password = CONFIG["password"]
    config.default_server = CONFIG["default_server"]
    config.host = CONFIG["host"]
    config.growl = CONFIG["growl"]
  
    config.add_path(:base_path, BASE_PATH)
    config.servers = SERVERS
  
    config.content_variables = @content_variables
  end

  Epic::Base.configure do |config|
    config.base_path = BASE_PATH
    config.tmp_path = TMP_PATH
    config.doctype = CONFIG["validate"]["html"]["doctype"]
    config.jslint_settings = @jslint_settings
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
ymdp-1.4.7 lib/ymdp/configuration/constants.rb
ymdp-1.4.6 lib/ymdp/configuration/constants.rb
ymdp-1.4.5 lib/ymdp/configuration/constants.rb
ymdp-1.4.4 lib/ymdp/configuration/constants.rb
ymdp-1.4.3 lib/ymdp/configuration/constants.rb
ymdp-1.4.2 lib/ymdp/configuration/constants.rb
ymdp-1.4.1 lib/ymdp/configuration/constants.rb
ymdp-1.4.0 lib/ymdp/configuration/constants.rb
ymdp-1.3.4 lib/ymdp/configuration/constants.rb
ymdp-1.3.3 lib/ymdp/configuration/constants.rb
ymdp-1.3.2 lib/ymdp/configuration/constants.rb
ymdp-1.3.1 lib/ymdp/configuration/constants.rb
ymdp-1.3.0 lib/ymdp/configuration/constants.rb
ymdp-1.2.0 lib/ymdp/configuration/constants.rb
ymdp-1.1.0 lib/ymdp/configuration/constants.rb
ymdp-1.0.1 lib/ymdp/configuration/constants.rb
ymdp-1.0.0 lib/ymdp/configuration/constants.rb
ymdp-0.10.2 lib/ymdp/configuration/constants.rb
ymdp-0.10.1 lib/ymdp/configuration/constants.rb
ymdp-0.10.0 lib/ymdp/configuration/constants.rb