module QingCloudServer::Utility
Constants
- CONFIG_FILE_PATH
Public Class Methods
read_config_file()
click to toggle source
# File lib/utility/setting.rb, line 7 def self.read_config_file config_json_file = "" File.open(CONFIG_FILE_PATH) {|file| config_json_file = file.read } if File.exist?(CONFIG_FILE_PATH) JSON.parse(config_json_file) end