示例#1
0
class BuildPackManager(object):
    def __init__(self, builder):
        self._builder = builder
        self._log = _log

    def from_buildpack(self, url):
        self._log.debug('Using build pack [%s]', url)
        self._bp = BuildPack(self._builder._ctx, url)
        return self

    def using_branch(self, branch):
        self._bp._branch = branch
        return self

    def done(self):
        if self._bp:
            self._bp._clone()
            print self._bp._compile()
        return self._builder
示例#2
0
class BuildPackManager(object):
    def __init__(self, builder):
        self._builder = builder
        self._log = _log

    def from_buildpack(self, url):
        self._log.debug('Using build pack [%s]', url)
        self._bp = BuildPack(self._builder._ctx, url)
        return self

    def using_branch(self, branch):
        self._bp._branch = branch
        return self

    def done(self):
        if self._bp:
            self._bp._clone()
            print self._bp._compile()
        return self._builder
示例#3
0
 def from_buildpack(self, url):
     self._log.debug('Using build pack [%s]', url)
     self._bp = BuildPack(self._builder._ctx, url)
     return self
 def from_buildpack(self, url):
     self._log.debug('Using build pack [%s]', url)
     self._bp = BuildPack(self._builder._ctx, url)
     return self