Browse Source

EEstack base class structure

feature/plugin
harshadyeola 10 years ago
parent
commit
1c3b140839
  1. 2
      ee/cli/main.py
  2. 36
      ee/cli/plugins/eestack.py

2
ee/cli/main.py

@ -62,7 +62,7 @@ class EEApp(foundation.CementApp):
# default output handler
output_handler = EEOutputHandler
arg_handler = EEArgHandler
argument_handler = EEArgHandler
debug = TOGGLE_DEBUG

36
ee/cli/plugins/eestack.py

@ -0,0 +1,36 @@
"""EasyEnging stack Interface"""
class EEStack(object):
"""
This is meta description for EEStack
"""
def __init__(self, package_name):
"""
package_name: specify the name of package the operation
to be performed on
"""
self.package_name=package_name
def install_stack(self, package_name):
"""
Installs the package on system
"""
pass
def remove_stack(self, package_name):
"""
Removes the package on system
"""
pass
def _is_installed(self, package_name):
"""
Check if package is already installed
Return
True: if package is installed
False: if package is not installed
"""
Loading…
Cancel
Save