Commit | Line | Data |
---|---|---|
42d22ec0 RB |
1 | # -*- coding: utf-8 -*- |
2 | ||
3 | import datetime | |
4 | ||
5 | from django.utils import timezone | |
6 | ||
7 | ||
8 | class BaseSetup(object): | |
9 | ||
10 | requires = () | |
11 | ||
12 | def __init__(self, verbosity=0, now=None): | |
13 | self.verbosity = verbosity | |
14 | if now is None: | |
15 | now = timezone.now() | |
16 | self.now = now | |
17 | ||
18 | def run(self): | |
19 | raise NotImplementedError |