def save_to_file!(file)
      data = {}
      data['networks']     = Network.serialize_all     @conf[:networks], @conf
      data['integrations'] = Integration.serialize_all @conf[:integrations],
                                                       @conf
      File.write file, Psych.dump(data)
    end
def save_to_file!(file)
      data = {}
      data['networks']     = Network.serialize_all     @conf[:networks], @conf
      data['integrations'] = Integration.serialize_all @conf[:integrations],
                                                       @conf
      File.write file, Psych.dump(data)
    end
Saves the configuration to the specified file.

 @param file [String] the path to the configuration file