Sha256: 16a07f51eb78f5435dd77b3b1f9c936c09bc3b50e55cef73d264e169b6adc956

Contents?: true

Size: 862 Bytes

Versions: 1

Compression:

Stored size: 862 Bytes

Contents

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")

@jslint_settings = File.read("#{BASE_PATH}/config/jslint_settings.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.growl = CONFIG["growl"]
  config.verbose = CONFIG["verbose"]
  config.compress = CONFIG["compress"]
  config.validate = CONFIG["validate"]
  
  config.add_path(:base_path, BASE_PATH)
  config.servers = SERVERS
  
  config.content_variables = @content_variables
end

YMDP::Validator::JavaScript.configure do |config|
  config.jslint_settings = @jslint_settings
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ymdp-0.1.8 lib/ymdp/configuration/constants.rb