コード例 #1
0
    def __init__(self):
        """ Initialize generic project installation object & helper functions.
        project: the name of the project to be built.

        """
        config = ygg.get_config()
        self.server = pantheon.PantheonServer()

        self.project = config.keys()[0]
        self.config = config[self.project]
        self.environments = set(self.config['environments'].keys())
        self.project_path = os.path.join(self.server.webroot, self.project)
        self.db_password = self.config\
                ['environments']['live']['mysql']['db_password']
コード例 #2
0
ファイル: project.py プロジェクト: KyleAMathews/mercury
    def __init__(self):
        """ Initialize generic project installation object & helper functions.
        project: the name of the project to be built.

        """
        config = ygg.get_config()
        self.server = pantheon.PantheonServer()

        self.project = config.keys()[0]
        self.config = config[self.project]
        self.environments = set(self.config['environments'].keys())
        self.project_path = os.path.join(self.server.webroot, self.project)
        self.db_password = self.config\
                ['environments']['live']['mysql']['db_password']
コード例 #3
0
def _get_server_name(project):
    """Return server name from apache alias "env.server_name.gotpantheon.com"
    """
    config = ygg.get_config()
    alias = config[project]['environments']['dev']['apache']['ServerAlias']
    return alias.split('.')[1]
コード例 #4
0
def _get_server_name(project):
    """Return server name from apache alias "env.server_name.gotpantheon.com"
    """
    config = ygg.get_config()
    alias = config[project]['environments']['dev']['apache']['ServerAlias']
    return alias.split('.')[1]