Class: PiFi::ConfigGetter

Inherits:
Object
  • Object
show all
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

#file_to_hash

Instance Method Details

#configObject



19
20
21
# File 'lib/pifi/lib/config_getter.rb', line 19

def config
  @config ||= parse_config
end