Esempio n. 1
0
    def __init__(self, groupname=None):
        from acecloud.cloud import Cloud
        super().__init__()
        if not groupname:
            groupname = ''.join(
                random.SystemRandom().choice(string.ascii_uppercase +
                                             string.digits +
                                             string.ascii_lowercase)
                for _ in range(8))

        self._groupname = groupname
        self._cloud = Cloud()
        self._index = 0
        self._jobs = []
Esempio n. 2
0
 def _createCloud(self):
     if self._cloud is not None:
         return
     from acecloud.cloud import Cloud
     self._cloud = Cloud(verbose=self.verbose)