def tearDown(self): hooks.unregister_hook("copy", git.copy) try: shutil.rmtree(env.app_path) pass except OSError: pass
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()
def unregister(): hooks.unregister_hook("setup", setup) hooks.unregister_hook("deploy", after_deploy) hooks.unregister_hook("after_deploy", after_deploy)
def unregister(): node.unregiser() hooks.unregister_hook("after_deploy", after_deploy)
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)
def unregister(): hooks.unregister_hook("setup", setup) hooks.unregister_hook("deploy", deploy) hooks.unregister_hook("after_deploy", after_deploy)
def unregister(): django.unregister() hooks.unregister_hook("after_deploy", after_deploy)
def unregister(): hooks.unregister_hook("setup", setup) hooks.unregister_hook("deploy", deploy) hooks.unregister_hook("after_deploy", after_deploy) hooks.unregister_hook("rollback", rollback)
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)