1
0
Fork 0
mirror of synced 2024-05-30 14:01:12 -04:00
dotbot/dotbot/context.py

24 lines
536 B
Python
Raw Normal View History

import copy
class Context(object):
'''
Contextual data and information for plugins.
'''
def __init__(self, base_directory):
self._base_directory = base_directory
self._defaults = {}
pass
def set_base_directory(self, base_directory):
self._base_directory = base_directory
def base_directory(self):
return self._base_directory
def set_defaults(self, defaults):
self._defaults = defaults
def defaults(self):
return copy.deepcopy(self._defaults)