equal
deleted
inserted
replaced
1 # -*- mode: ruby -*- |
1 # -*- mode: ruby -*- |
2 # vi: set ft=ruby : |
2 # vi: set ft=ruby : |
3 |
3 |
4 require 'yaml' |
4 require 'yaml' |
5 |
5 |
6 custom_file_path = File.join(__dir__, 'custom.yaml') |
6 custom_file_path = File.join(__dir__, (ENV['SYSCONFIG'] || 'custom.yaml')) |
7 |
7 |
8 context = File.exist?(custom_file_path)?YAML::load_file(custom_file_path):{} |
8 context = File.exist?(custom_file_path)?YAML::load_file(custom_file_path):{} |
9 |
9 |
10 ROOT_PATH = context.fetch("root_path","../") |
10 ROOT_PATH = context.fetch("root_path","../") |
11 |
11 |