本文整理汇总了Python中buildbot.process.step.ShellCommand.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ShellCommand.__init__方法的具体用法?Python ShellCommand.__init__怎么用?Python ShellCommand.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类buildbot.process.step.ShellCommand
的用法示例。
在下文中一共展示了ShellCommand.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from buildbot.process.step import ShellCommand [as 别名]
# 或者: from buildbot.process.step.ShellCommand import __init__ [as 别名]
def __init__(self, **kwargs):
if 'url' in kwargs:
self.url = kwargs['url']
if 'branch' in kwargs:
self.branch = kwargs['branch']
if 'filenameSearchString' in kwargs:
self.filenameSearchString = kwargs['filenameSearchString']
if not 'command' in kwargs:
kwargs['command'] = ["wget"]
ShellCommand.__init__(self, **kwargs)
示例2: __init__
# 需要导入模块: from buildbot.process.step import ShellCommand [as 别名]
# 或者: from buildbot.process.step.ShellCommand import __init__ [as 别名]
def __init__(self, **kwargs):
if not 'platform' in kwargs:
return FAILURE
self.platform = kwargs['platform']
if 'dir' in kwargs:
self.dir = kwargs['dir']
if self.platform.startswith('win'):
self.command = r'if not exist ' + self.dir + r' mkdir ' + self.dir
else:
self.command = ['mkdir', '-p', self.dir]
ShellCommand.__init__(self, **kwargs)
示例3: __init__
# 需要导入模块: from buildbot.process.step import ShellCommand [as 别名]
# 或者: from buildbot.process.step.ShellCommand import __init__ [as 别名]
def __init__(self, **kwargs):
self.flunkOnFailure = True
self.warnOnWarnings = True
self.warnOnFailure = True
if 'buildType' in kwargs:
self.buildType = kwargs['buildType']
else:
self.buildType = "opt"
if 'branch' in kwargs:
self.branch = kwargs['branch']
else:
self.branch = "1.9.0"
ShellCommand.__init__(self, **kwargs)