示例#1
0
def onramp_site(project='pantheon', url=None, profile=None, **kw):
    """Create a new Drupal installation.
    project: Installation namespace.
    profile: The installation type (e.g. pantheon/openatrium)
    **kw: Optional dictionary of values to process on installation.

    """

    archive = onramp.download(url)
    location = onramp.extract(archive)
    handler = _get_handler(profile, project, location)

    handler.build(location)
示例#2
0
def onramp_site(project='pantheon', url=None, profile=None, **kw):
    """Create a new Drupal installation.
    project: Installation namespace.
    profile: The installation type (e.g. pantheon/openatrium)
    **kw: Optional dictionary of values to process on installation.

    """

    archive = onramp.download(url)
    location = onramp.extract(archive)
    handler = _get_handler(profile, project, location)

    try:
        handler.build(location)
    except:
        jenkinstools.junit_error(traceback.format_exc(), 'OnrampSite')
        raise
    else:
        jenkinstools.junit_pass('', 'OnrampSite')
示例#3
0
def onramp_site(project='pantheon', url=None, profile=None, **kw):
    """Create a new Drupal installation.
    project: Installation namespace.
    profile: The installation type (e.g. pantheon/openatrium)
    **kw: Optional dictionary of values to process on installation.

    """

    archive = onramp.download(url)
    location = onramp.extract(archive)
    handler = _get_handler(profile, project, location)

    try:
        handler.build(location)
    except:
        jenkinstools.junit_error(traceback.format_exc(), 'OnrampSite')
        raise
    else:
        jenkinstools.junit_pass('', 'OnrampSite')
示例#4
0
def onramp_site(project='pantheon', url=None, profile=None, **kw):
    """Create a new Drupal installation.
    project: Installation namespace.
    profile: The installation type (e.g. pantheon/openatrium)
    **kw: Optional dictionary of values to process on installation.

    """
    #TODO: Move logging into pantheon libraries for better coverage.
    log = logger.logging.getLogger('pantheon.onramp.site')
    log = logger.logging.LoggerAdapter(log,
                                       {"project": project})
    archive = onramp.download(url)
    location = onramp.extract(archive)
    handler = _get_handler(profile, project, location)

    log.info('Initiated site build.')
    try:
        handler.build(location)
    except:
        log.exception('Site build encountered an exception.')
        raise
    else:
        log.info('Site build was successful.')