Module: DyndocServers
- Defined in:
- lib/dyndoc-servers-cfg.rb
Constant Summary collapse
- @@cfg =
nil
- @@servers_cfg_file =
File.join(ENV["HOME"],".dyndoc-servers.yml")
Class Method Summary collapse
Class Method Details
.cfg ⇒ Object
5 6 7 8 9 10 |
# File 'lib/dyndoc-servers-cfg.rb', line 5 def DyndocServers.cfg unless @@cfg @@cfg=(File.exist? @@servers_cfg_file) ? ::YAML::load_file(@@servers_cfg_file) : {} end @@cfg end |
.dyn_cli_port? ⇒ Boolean
12 13 14 |
# File 'lib/dyndoc-servers-cfg.rb', line 12 def DyndocServers.dyn_cli_port? DyndocServers.cfg["ports"] ? @@cfg["ports"]["dyn-cli"] : nil end |
.dyn_http_port? ⇒ Boolean
20 21 22 |
# File 'lib/dyndoc-servers-cfg.rb', line 20 def DyndocServers.dyn_http_port? DyndocServers.cfg["ports"] ? @@cfg["ports"]["dyn-http"] : nil end |
.dyn_srv_port? ⇒ Boolean
16 17 18 |
# File 'lib/dyndoc-servers-cfg.rb', line 16 def DyndocServers.dyn_srv_port? DyndocServers.cfg["ports"] ? @@cfg["ports"]["dyn-srv"] : nil end |