Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
0
 def from_buildpack(self, url):
     self._log.debug('Using build pack [%s]', url)
     self._bp = BuildPack(self._builder._ctx, url)
     return self
Exemplo n.º 4
0
 def from_buildpack(self, url):
     self._log.debug('Using build pack [%s]', url)
     self._bp = BuildPack(self._builder._ctx, url)
     return self