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