本文整理汇总了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))
示例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)
示例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))
示例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)