Module: ProcessWanker::Config
- Defined in:
- lib/config/config_node.rb
Constant Summary collapse
- @@config_path =
ENV["PW_CFG"] || "/etc/pw/pw.cfg"
Class Method Summary collapse
Class Method Details
.get_config_path ⇒ Object
122 123 124 |
# File 'lib/config/config_node.rb', line 122 def get_config_path() @@config_path end |
.load_config(path) ⇒ Object
132 133 134 135 136 137 138 |
# File 'lib/config/config_node.rb', line 132 def load_config(path) ProcessWanker::loaded_config=nil # load(path) config = ERB.new(File.read(path)).result eval(config) ProcessWanker::loaded_config end |
.set_config_path(path) ⇒ Object
127 128 129 |
# File 'lib/config/config_node.rb', line 127 def set_config_path(path) @@config_path=path end |