repo2docker/app.py
def fetch(self, url, ref, checkout_path):
        """Check out a repo using url and ref to the checkout_path locationself.

        Iterate through possible content providers until a valid provider,
        based on URL, is found.
        """
        picked_content_provider = None
        for ContentProvider in self.content_providers:
            cp = ContentProvider()
            spec = cp.detect(url, ref=ref)
            if spec is not None:
                picked_content_provider = cp
                self.log.info("Picked {cp} content "
                              "provider.\n".format(cp=cp.__class__.__name__))
                break

        if picked_content_provider is None:
            self.log.error("No matching content provider found for "
                           "{url}.".format(url=url))

        for log_line in picked_content_provider.fetch(
                spec, checkout_path, yield_output=self.json_logs):
            self.log.info(log_line, extra=dict(phase='fetching'))
Check out a repo using url and ref to the checkout_path locationself.

        Iterate through possible content providers until a valid provider,
        based on URL, is found.
        
Check out a repo using url and ref to the checkout_path locationself.
Iterate through possible content providers until a valid provider,
based on URL, is found.
Check out a repo using url and ref to the checkout_path locationself . Iterate through possible content providers until a valid provider based on URL is found .
def fetch(self, url, ref, checkout_path):
        picked_content_provider = None
        for ContentProvider in self.content_providers:
            cp = ContentProvider()
            spec = cp.detect(url, ref=ref)
            if spec is not None:
                picked_content_provider = cp
                self.log.info("Picked {cp} content "
                              "provider.\n".format(cp=cp.__class__.__name__))
                break
        if picked_content_provider is None:
            self.log.error("No matching content provider found for "
                           "{url}.".format(url=url))
        for log_line in picked_content_provider.fetch(
                spec, checkout_path, yield_output=self.json_logs):
            self.log.info(log_line, extra=dict(phase='fetching'))
def fetch ( self , url , ref , checkout_path ) : picked_content_provider = None for ContentProvider in self . content_providers : cp = ContentProvider ( ) spec = cp . detect ( url , ref = ref ) if spec is not None : picked_content_provider = cp self . log . info ( "Picked {cp} content " "provider.\n" . format ( cp = cp . __class__ . __name__ ) ) break if picked_content_provider is None : self . log . error ( "No matching content provider found for " "{url}." . format ( url = url ) ) for log_line in picked_content_provider . fetch ( spec , checkout_path , yield_output = self . json_logs ) : self . log . info ( log_line , extra = dict ( phase = 'fetching' ) )
Check out a repo using url and ref to the checkout_path locationself.
Check out a repo using url and ref to the checkout_path locationself .
"""Check out a repo using url and ref to the checkout_path locationself.

        Iterate through possible content providers until a valid provider,
        based on URL, is found.
        """
self
url
ref
checkout_path