Sha256: 43dbea11f202cdb067adc41d672d8c83e76e6855454b29e1c0dbb9a49ab9f584
Contents?: true
Size: 675 Bytes
Versions: 2
Compression:
Stored size: 675 Bytes
Contents
module GarbageMan class Config @@gc_health_check_request_path = '/gc_health_check' def self.gc_health_check_request_path; @@gc_health_check_request_path; end @@gc_yaml_file = nil def self.gc_yaml_file; @@gc_yaml_file ||= "./data/gc.yml"; end def self.gc_yaml_file=(file); @@gc_yaml_file = file; end def self.gc_config begin File.exists?(self.gc_yaml_file) ? YAML.load_file(self.gc_yaml_file) : nil rescue Errno::ENOENT => e nil end end @@thin_config = nil def self.thin_config; @@thin_config ||= YAML.load_file("./config/thin.yml"); end def self.num_request_before_collecting; 10; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
garbageman-0.1.2 | lib/garbageman/config.rb |
garbageman-0.1.1 | lib/garbageman/config.rb |