Example #1
0
    def prepare(self):
        """
        Prepare environment
        """

        Environ.prepare(self)

        # Receive file from master
        return self.receiveFile()
Example #2
0
    def prepare(self):
        """
        Prepare environment
        """

        Environ.prepare(self)

        # Receive file from master
        return self.receiveFile()
Example #3
0
    def __init__(self, options):
        """
        Initialize environment
        """

        Environ.__init__(self, options)

        self.fname = options['fname']
        if self.fname.startswith('file://'):
            self.fname = self.fname[7:]
Example #4
0
    def __init__(self, options):
        """
        Initialize environment
        """

        Environ.__init__(self, options)

        self.fname = options['fname']
        if self.fname.startswith('file://'):
            self.fname = self.fname[7:]
Example #5
0
    def prepare(self):
        """
        Prepare environment
        """

        Environ.prepare(self)

        repo_path = self.getRepoPath()

        if os.path.isdir(repo_path):
            if not self.updateRepo():
                return False
        else:
            if not self.cloneRepo():
                return False

        return True
Example #6
0
    def __init__(self, options):
        """
        Initialize environment
        """

        Environ.__init__(self, options)

        prefix = self.vcs_id + '//'

        s = options['fname'][len(prefix) + 1:].split(self.fname_sep)
        self.repo = self.trimRepo(self.fname_sep.join(s[:-1]))

        s = s[-1].split(self.commit_sep)
        self.fname = self.commit_sep.join(s[:-1])
        self.commit = s[-1]

        self.encoded_repo = self.encodePath(self.repo)
        self.storage = Config.slave['storage_path']