summaryrefslogtreecommitdiff
path: root/dotbot/plugin.py
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2016-03-02 20:53:19 -0500
committerAnish Athalye <me@anishathalye.com>2016-03-03 09:42:50 -0500
commitf52bbd1eec0d6fb103c5fcbb75c03ca223fffdb7 (patch)
tree8578282f6ce6cdb02eab51a9bcd18c590f7a127a /dotbot/plugin.py
parentdaf8d82e02c2bcc476932790fa25076631c4c312 (diff)
Add default options
This feature was implemented with feedback from Aleks Kamko <aykamko@gmail.com> and Casey Rodarmor <casey@rodarmor.com>.
Diffstat (limited to 'dotbot/plugin.py')
-rw-r--r--dotbot/plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/dotbot/plugin.py b/dotbot/plugin.py
index a79639e..56d4da8 100644
--- a/dotbot/plugin.py
+++ b/dotbot/plugin.py
@@ -1,12 +1,13 @@
from .messenger import Messenger
+from .context import Context
class Plugin(object):
'''
Abstract base class for commands that process directives.
'''
- def __init__(self, base_directory):
- self._base_directory = base_directory
+ def __init__(self, context):
+ self._context = context
self._log = Messenger()
def can_handle(self, directive):