当前位置: 首页>>代码示例>>Python>>正文


Python AbstractLatentWorker.reconfigService方法代码示例

本文整理汇总了Python中buildbot.worker.AbstractLatentWorker.reconfigService方法的典型用法代码示例。如果您正苦于以下问题:Python AbstractLatentWorker.reconfigService方法的具体用法?Python AbstractLatentWorker.reconfigService怎么用?Python AbstractLatentWorker.reconfigService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在buildbot.worker.AbstractLatentWorker的用法示例。


在下文中一共展示了AbstractLatentWorker.reconfigService方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: reconfigService

# 需要导入模块: from buildbot.worker import AbstractLatentWorker [as 别名]
# 或者: from buildbot.worker.AbstractLatentWorker import reconfigService [as 别名]
    def reconfigService(self, name, password, hyper_host,
                        hyper_accesskey, hyper_secretkey, image, hyper_size="xs", masterFQDN=None, **kwargs):

        AbstractLatentWorker.reconfigService(self, name, password, **kwargs)
        self.size = hyper_size
        self.image = image

        # Prepare the parameters for the Docker Client object.
        self.client_args = {'clouds': {
            hyper_host: {
                "accesskey": hyper_accesskey,
                "secretkey": hyper_secretkey
            }
        }}
        if not masterFQDN:  # also match empty string (for UI)
            masterFQDN = socket.getfqdn()
        self.masterFQDN = masterFQDN
开发者ID:Ericyuanhui,项目名称:buildbot,代码行数:19,代码来源:hyper.py

示例2: reconfigService

# 需要导入模块: from buildbot.worker import AbstractLatentWorker [as 别名]
# 或者: from buildbot.worker.AbstractLatentWorker import reconfigService [as 别名]
 def reconfigService(self, name, password=None, image=None,
                     masterFQDN=None, **kwargs):
     # Set build_wait_timeout to 0 if not explicitely set: Starting a
     # container is almost immediate, we can afford doing so for each build.
     if 'build_wait_timeout' not in kwargs:
         kwargs['build_wait_timeout'] = 0
     if password is None:
         password = self.getRandomPass()
     self.image = image
     return AbstractLatentWorker.reconfigService(self, name, password, **kwargs)
开发者ID:zware,项目名称:buildbot,代码行数:12,代码来源:docker.py

示例3: reconfigService

# 需要导入模块: from buildbot.worker import AbstractLatentWorker [as 别名]
# 或者: from buildbot.worker.AbstractLatentWorker import reconfigService [as 别名]
 def reconfigService(self, name, password=None, image=None,
                     masterFQDN=None, **kwargs):
     # Set build_wait_timeout to 0 if not explicitely set: Starting a
     # container is almost immediate, we can afford doing so for each build.
     if 'build_wait_timeout' not in kwargs:
         kwargs['build_wait_timeout'] = 0
     if password is None:
         password = self.getRandomPass()
     if masterFQDN is None:
         masterFQDN = socket.getfqdn()
     self.masterFQDN = masterFQDN
     self.image = image
     self.masterhash = hashlib.sha1(self.master.name).hexdigest()[:6]
     return AbstractLatentWorker.reconfigService(self, name, password, **kwargs)
开发者ID:nand0p,项目名称:buildbot,代码行数:16,代码来源:docker.py

示例4: reconfigService

# 需要导入模块: from buildbot.worker import AbstractLatentWorker [as 别名]
# 或者: from buildbot.worker.AbstractLatentWorker import reconfigService [as 别名]
    def reconfigService(self, name, password, hyper_host,
                        hyper_accesskey, hyper_secretkey, image, hyper_size="s3", masterFQDN=None, **kwargs):
        # Set build_wait_timeout to 0s if not explicitely set: Starting a
        # container is almost immediate, we can affort doing so for each build.

        if 'build_wait_timeout' not in kwargs:
            kwargs['build_wait_timeout'] = 0

        yield AbstractLatentWorker.reconfigService(self, name, password, **kwargs)

        self.manager = yield HyperLatentManager.getService(self.master, hyper_host, hyper_accesskey,
                                                           hyper_secretkey)
        self.masterhash = hashlib.sha1(self.master.name).hexdigest()[:6]
        self.size = hyper_size

        self.image = image
        if not masterFQDN:  # also match empty string (for UI)
            masterFQDN = socket.getfqdn()
        self.masterFQDN = masterFQDN
开发者ID:sdegrande,项目名称:buildbot,代码行数:21,代码来源:hyper.py

示例5: reconfigService

# 需要导入模块: from buildbot.worker import AbstractLatentWorker [as 别名]
# 或者: from buildbot.worker.AbstractLatentWorker import reconfigService [as 别名]
 def reconfigService(self, name, _, **kwargs):
     AbstractLatentWorker.reconfigService(
         self, name, None,
         build_wait_timeout=self._controller.build_wait_timeout,
         **kwargs)
开发者ID:buildbot,项目名称:buildbot,代码行数:7,代码来源:latent.py


注:本文中的buildbot.worker.AbstractLatentWorker.reconfigService方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。