def load_from_file!(file)
      data = Psych.safe_load(File.read(file)) if File.file? file
      data = {} unless data.is_a? Hash
      conf = {}
      conf[:networks]     = Network.deserialize_all data['networks'], conf
      conf[:integrations] = Integration.deserialize_all data['integrations'],
                                                        conf
      conf
    end
def load_from_file!(file)
      data = Psych.safe_load(File.read(file)) if File.file? file
      data = {} unless data.is_a? Hash
      conf = {}
      conf[:networks]     = Network.deserialize_all data['networks'], conf
      conf[:integrations] = Integration.deserialize_all data['integrations'],
                                                        conf
      conf
    end
Loads the configuration from the specified file.

 @param file [String] the path to the configuration file
 @return [Hash] the loaded configuration, or the default configuration if
                the file did not exist