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


Python AbstractLatentWorker.checkConfig方法代码示例

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


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

示例1: checkConfig

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

        AbstractLatentWorker.checkConfig(self, name, password, **kwargs)

        if not Hyper:
            config.error("The python modules 'docker-py>=1.4' and 'hyper_sh' are needed to use a"
                         " HyperLatentWorker")

        if hyper_size not in self.ALLOWED_SIZES:
            config.error("Size is not valid %s vs %r".format(
                hyper_size, self.ALLOWED_SIZES))
开发者ID:sdegrande,项目名称:buildbot,代码行数:14,代码来源:hyper.py

示例2: checkConfig

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

        # Set build_wait_timeout to 0 if not explicitly 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 image is not None and not isinstance(image, str):
            if not hasattr(image, 'getRenderingFor'):
                config.error("image must be a string")

        AbstractLatentWorker.checkConfig(self, name, password, **kwargs)
开发者ID:fluendo,项目名称:buildbot,代码行数:14,代码来源:docker.py

示例3: checkConfig

# 需要导入模块: from buildbot.worker import AbstractLatentWorker [as 别名]
# 或者: from buildbot.worker.AbstractLatentWorker import checkConfig [as 别名]
    def checkConfig(self, name, password, hyper_host,
                    hyper_accesskey, hyper_secretkey, image, hyper_size="xs", 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

        AbstractLatentWorker.checkConfig(self, name, password, **kwargs)

        if not Hyper:
            config.error("The python modules 'docker-py>=1.4' and 'hypercompose' are needed to use a"
                         " HyperLatentWorker")

        if hyper_size not in self.ALLOWED_SIZES:
            config.error("Size is not valid %s vs %r".format(hyper_size, self.ALLOWED_SIZES))
开发者ID:Ericyuanhui,项目名称:buildbot,代码行数:19,代码来源:hyper.py

示例4: checkConfig

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


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