lib/garbageman/config.rb in garbageman-0.1.0 vs lib/garbageman/config.rb in garbageman-0.1.1
- old
+ new
@@ -2,11 +2,11 @@
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 ||= "#{Rails.root}/data/gc.yml"; end
+ 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
@@ -14,10 +14,10 @@
nil
end
end
@@thin_config = nil
- def self.thin_config; @@thin_config ||= YAML.load_file("#{Rails.root}/config/thin.yml"); end
+ def self.thin_config; @@thin_config ||= YAML.load_file("./config/thin.yml"); end
def self.num_request_before_collecting; 10; end
end
end