From a29eb4aa77069a6307b1593a886dcc8a090b0ba4 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Wed, 17 Jun 2015 12:35:22 +0530 Subject: [PATCH] Added hook for stack install and stack remove --- ee/cli/plugins/stack.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 69e2fadd..a81d12e7 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -89,7 +89,7 @@ class EEStackController(CementBaseController): self.app.args.print_help() #EEAdminStack(self).purge_stack() - + @expose(help="Install packages") def install(self, packages=[], apt_packages=[], disp_msg=True): """Start installation of packages""" @@ -158,6 +158,9 @@ class EEStackController(CementBaseController): if self.app.pargs.utils: EEAdminStack(package_dict=EEVariables.ee_utils).install_stack() + # Hook for stack install plugin + hook.run('stack_install_hook', self.app) + @expose(help="Remove packages") def remove(self): @@ -225,8 +228,10 @@ class EEStackController(CementBaseController): if self.app.pargs.utils: EEAdminStack(package_dict=EEVariables.ee_utils).remove_stack() + # Hook for stack remove plugins + hook.run('stack_install_hook', self.app) + - @expose(help="Purge packages") def purge(self): """Start purging of packages"""