def __init__(self, isOptional=False, patchDir=".", workdir="build", **kwargs): """arguments: @type patchDir: string @param patchDir: The directory on the master that holds the patches This directory is relative to the base buildmaster directory. ie. /home/buildmaster/project Defaults to '.' 'workdir' is assumed to be 'build' and should be passed if it is anything else. 'isOptional' is assumed to be False; if the patch is optional, pass True. """ FileDownload.__init__(self, mastersrc=".", slavedest=".", workdir=workdir, **kwargs) self.addFactoryArguments(isOptional=isOptional, patchDir=patchDir) self.isOptional = isOptional self.patchDir = patchDir self.super_class = FileDownload
def __init__(self, build_dir, basename, extension, prop_name, **kwargs): FileDownload.__init__(self, **kwargs) self.addFactoryArguments(build_dir=build_dir, basename=prefix, extension=extension, prop_name=prop_name) self.build_dir = build_dir self.basename = prefix self.extension = extension self.prop_name = prop_name
def __init__(self, mastersrc=None, patchDir=".", **kwargs): """arguments: @type patchDir: string @param patchDir: The directory on the master that holds the mozconfig This directory is relative to the base buildmaster directory. ie. /home/buildmaster/project Defaults to '.' """ self.workdir = "mozilla/" kwargs['workdir'] = "mozilla/" self.patchDir = patchDir # masterscr and slavedest get overridden in start() FileDownload.__init__(self, mastersrc=mastersrc, slavedest=".mozconfig", **kwargs)
def __init__(self, mastersrc=None, patchDir=".", workdir="mozilla", slavedest=".mozconfig", **kwargs): """arguments: @type patchDir: string @param patchDir: The directory on the master that holds the mozconfig This directory is relative to the base buildmaster directory. ie. /home/buildmaster/project Defaults to '.' """ # mastersrc and slavedest get overridden in start() FileDownload.__init__(self, mastersrc=mastersrc, workdir=workdir, slavedest=slavedest, **kwargs) self.addFactoryArguments(patchDir=patchDir) self.patchDir = patchDir self.super_class = FileDownload
def __init__(self, isOptional=False, patchDir=".", **kwargs): """arguments: @type patchDir: string @param patchDir: The directory on the master that holds the patches This directory is relative to the base buildmaster directory. ie. /home/buildmaster/project Defaults to '.' 'workdir' is assumed to be 'build' and should be passed if it is anything else. 'isOptional' is assumed to be False; if the patch is optional, pass True. """ self.patchDir = patchDir self.isOptional = isOptional # mastersrc and slavedest get overridden in start() if not 'workdir' in kwargs: kwargs['workdir'] = "build" FileDownload.__init__(self, mastersrc=".", slavedest=".", **kwargs)
def __init__(self, **kwargs): if 'command' in kwargs: if 'mastersrc' in kwargs: raise ValueError,"Unexpected 'mastersrc' argument." if 'slavedest' in kwargs: raise ValueError,"Unexpected 'slavedest' argument." # This is the initial construction, create a temporary # batch file to run the command. import os import tempfile command = kwargs.pop('command') tf = tempfile.NamedTemporaryFile(delete=False) print >>tf, '@echo on' print >>tf, ' '.join('"%s"' % a for a in command) tf.close() remotename = kwargs.get('name', 'batched-command') kwargs['mastersrc'] = os.path.abspath(tf.name) kwargs['slavedest'] = '%s.bat' % remotename FileDownload.__init__(self, **kwargs)
def __init__(self, **kwargs): if "command" in kwargs: if "mastersrc" in kwargs: raise ValueError, "Unexpected 'mastersrc' argument." if "slavedest" in kwargs: raise ValueError, "Unexpected 'slavedest' argument." # This is the initial construction, create a temporary # batch file to run the command. import os import tempfile command = kwargs.pop("command") tf = tempfile.NamedTemporaryFile(delete=False) print >> tf, "@echo on" print >> tf, " ".join('"%s"' % a for a in command) tf.close() remotename = kwargs.get("name", "batched-command") kwargs["mastersrc"] = os.path.abspath(tf.name) kwargs["slavedest"] = "%s.bat" % remotename FileDownload.__init__(self, **kwargs)
def __init__(self, mastersrc=None, slavedest=None, **kwargs): global moduledir FileDownload.__init__(self, mastersrc= "%s/catalyst.common.ctest" % moduledir, slavedest=Interpolate("%(prop:builddir)s/catalyst.common.ctest"), **kwargs)
def __init__(self, **kwargs): FileDownload.__init__(self, mastersrc="virtualenv.py", slavedest="virtualenv.py")