Exemplo n.º 1
0
    def tearDown(self):
        hooks.unregister_hook("copy", git.copy)

        try:
            shutil.rmtree(env.app_path)
            pass
        except OSError:
            pass
Exemplo n.º 2
0
    def tearDown(self):
        hooks.unregister_hook("copy", git.copy)
        hooks.unregister_hook("copy", empty_copy)
        env.venv_path = None

        try:
            shutil.rmtree(env.app_path)
            pass
        except OSError:
            pass

        django_recipe.unregister()
Exemplo n.º 3
0
def unregister():
    hooks.unregister_hook("setup", setup)
    hooks.unregister_hook("deploy", after_deploy)
    hooks.unregister_hook("after_deploy", after_deploy)
Exemplo n.º 4
0
def unregister():
    node.unregiser()

    hooks.unregister_hook("after_deploy", after_deploy)
Exemplo n.º 5
0
import time

from fabric.state import env
from fabric.context_managers import lcd
from fabric.api import settings

from fabrik import paths
from fabrik.api import setup, deploy, rollback
from fabrik.utils.elocal import elocal
from fabrik import hooks
from fabrik.transfer import git
from helpers import empty_copy


# Deregister git copy hook (so we can assign programmatically)
hooks.unregister_hook("copy", git.copy)


class TestApi(unittest.TestCase):
    def setUp(self):
        # Run in local mode
        env.run = elocal
        env.cd = lcd
        env.exists = os.path.exists

        current_path = os.path.dirname(os.path.abspath(__file__))
        env.app_path = os.path.join(current_path, "tmp")

    def tearDown(self):
        hooks.unregister_hook("copy", git.copy)
        hooks.unregister_hook("copy", empty_copy)
Exemplo n.º 6
0
def unregister():
    hooks.unregister_hook("setup", setup)
    hooks.unregister_hook("deploy", deploy)
    hooks.unregister_hook("after_deploy", after_deploy)
Exemplo n.º 7
0
def unregister():
    django.unregister()

    hooks.unregister_hook("after_deploy", after_deploy)
Exemplo n.º 8
0
def unregister():
    hooks.unregister_hook("setup", setup)
    hooks.unregister_hook("deploy", deploy)
    hooks.unregister_hook("after_deploy", after_deploy)
    hooks.unregister_hook("rollback", rollback)
Exemplo n.º 9
0
def unregister():
    hooks.unregister_hook("init_tasks", init_tasks)
    hooks.unregister_hook("setup", setup)
    hooks.unregister_hook("deploy", after_deploy)
    hooks.unregister_hook("after_deploy", after_deploy)