Exemple #1
0
def import_envs(is_debug, name, settings):
    envs = settings.get(ENVS_KEY, None)
    ignore_envs = {'DOKKU_DOCKERFILE_CMD'}
    if envs:
        env_str = " ".join(
            [e for e in envs if e.split("=", 1)[0] not in ignore_envs])
        dokku_run("config:set", name, env_str, is_debug=is_debug)
Exemple #2
0
    def _cleanup(self, settings):
        """
        Clean function which is ran after executing a fabric command.

        :param settings: Fabric settings.
        """
        temporary_key_file_path = settings.get('key_filename', None)

        if temporary_key_file_path:
            self._remove_private_key_file(file_path=temporary_key_file_path)
Exemple #3
0
    def _cleanup(self, settings):
        """
        Clean function which is ran after executing a fabric command.

        :param settings: Fabric settings.
        """
        temporary_key_file_path = settings.get('key_filename', None)

        if temporary_key_file_path:
            self._remove_private_key_file(file_path=temporary_key_file_path)
Exemple #4
0
def import_domains(is_debug, name, settings):
    for d in settings.get(DOMAINS_KEY, []):
        dokku_run("domains:add", name, d, is_debug=is_debug)