Exemple #1
0
 def make(self):
     """
     Start operations to retrieve data from the data file and make the new
     hosts file for the current operating system.
     """
     RetrieveData.connect_db()
     self.make_time = time.time()
     self.write_head()
     self.write_info()
     self.get_hosts(self.make_cfg)
     self.hosts_file.close()
     RetrieveData.disconnect_db()
Exemple #2
0
 def make(self):
     """
     Start operations to retrieve data from the data file and make the new
     hosts file for the current operating system.
     """
     RetrieveData.connect_db()
     self.make_time = time.time()
     self.write_head()
     self.write_info()
     self.get_hosts(self.make_cfg)
     self.hosts_file.close()
     RetrieveData.disconnect_db()