mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Move taskname printout
This commit is contained in:
parent
9f7b414627
commit
867fc9b276
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue