Move taskname printout

This commit is contained in:
Anders Ingemann 2013-06-09 18:25:35 +02:00
parent 9f7b414627
commit 867fc9b276
2 changed files with 8 additions and 1 deletions

View file

@ -7,4 +7,10 @@ class Task(object):
pass
def run(self, info):
print 'Running ' + self.__module__ + "." + self.__class__.__name__
pass
def __str__(self):
if self.name is None:
return '{module}.{task}'.format(module=self.__module__, task=self.__class__.__name__)
else:
return self.name

View file

@ -8,6 +8,7 @@ class TaskList(list):
def run(self, bootstrap_info):
for task in self:
print('Running {taskname}'.format(taskname=task))
task.run(bootstrap_info)
def before(self, ref, task):