dev/Vagrantfile
changeset 610 dc75c8d65289
parent 609 736fdedb7774
child 611 fa66f4bb1563
equal deleted inserted replaced
609:736fdedb7774 610:dc75c8d65289
     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