Class: PiFi::ConfigGetter
- Inherits:
-
Object
- Object
- PiFi::ConfigGetter
- Includes:
- Utils
- Defined in:
- lib/pifi/lib/config_getter.rb
Constant Summary collapse
- PATH =
"/etc/pifi/config.json"
- DEFAULT_KEYS =
{ "mpd_host" => "127.0.0.1", "mpd_port" => "6600", "mpd_password" => "", "streams_path" => "/etc/pifi/streams.json", "streams_path_priv" => "", "special_ips" => [], "play_local" => false, "serve_static" => true }
Instance Method Summary collapse
Methods included from Utils
Instance Method Details
#config ⇒ Object
19 20 21 |
# File 'lib/pifi/lib/config_getter.rb', line 19 def config @config ||= parse_config end |