mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

In practice they are just typed functions with attributes, having a reference to an object is just confusing. So: Task.run() is now a classmethod
17 lines
283 B
Python
17 lines
283 B
Python
|
|
|
|
class Task(object):
|
|
phase = None
|
|
predecessors = []
|
|
successors = []
|
|
|
|
class __metaclass__(type):
|
|
def __repr__(cls):
|
|
return '{module}.{task}'.format(module=cls.__module__, task=cls.__name__)
|
|
|
|
def __str__(cls):
|
|
return repr(cls)
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
pass
|