ontohub_config.rb revision 32d73a0c89d35b25d2e2bcc22b6f83d911d363a3
require 'yaml'
require 'singleton'
@config = {} #YAML.load_file(File.join(ROOT_PATH, 'config.yml'))
end
end
end
end
end
end
@config['http_settings'] ||= {}
end
@config['redis'] ||= {}
end
end
end
end
@config['audit_usernames'] ||= false
end
# Build redis command to write update event in ontohub queue
if redis.empty?
# Default to old method of connecting to redis
# for users that haven't updated their configuration
"env -i redis-cli"
else
"#{redis['bin']} -s #{redis['socket']}"
else
"#{redis['bin']} -h #{redis['host']} -p #{redis['port']}"
end
end
end
end