Ejemplo n.º 1
0
 def new_dagobah(self, return_instance=False):
     if not return_instance:
         self.dagobah = Dagobah(
             MongoBackend(self.mongo_host, self.mongo_port, self.db_name))
         self.dagobah_coll = self.dagobah.backend.dagobah_coll
         self.job_coll = self.dagobah.backend.job_coll
         self.log_coll = self.dagobah.backend.log_coll
     else:
         return Dagobah(
             MongoBackend(self.mongo_host, self.mongo_port, self.db_name))
Ejemplo n.º 2
0
def blank_dagobah():
    global dagobah
    backend = BaseBackend()
    location = os.path.realpath(
        os.path.join(os.getcwd(), os.path.dirname(__file__)))
    dagobah = Dagobah(backend,
                      ssh_config=os.path.join(location, "test_ssh_config"))
Ejemplo n.º 3
0
def blank_dagobah():
    global dagobah
    backend = BaseBackend()
    dagobah = Dagobah(backend)
Ejemplo n.º 4
0
 def new_dagobah(self, return_instance=False):
     if not return_instance:
         self.dagobah = Dagobah(SQLiteBackend(self.filepath))
     else:
         return Dagobah(SQLiteBackend(self.filepath))