mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Keep TaskList inside common module
This commit is contained in:
parent
a68511c1d5
commit
f0dec6d6af
3 changed files with 12 additions and 15 deletions
|
@ -1,5 +1,4 @@
|
||||||
__all__ = ['Manifest', 'Task', 'TaskList', 'main']
|
__all__ = ['Manifest', 'Task', 'main']
|
||||||
from manifest import Manifest
|
from manifest import Manifest
|
||||||
from task import Task
|
from task import Task
|
||||||
from tasklist import TaskList
|
|
||||||
from main import main
|
from main import main
|
||||||
|
|
|
@ -22,7 +22,9 @@ def run(args):
|
||||||
manifest.validate()
|
manifest.validate()
|
||||||
manifest.load_plugins()
|
manifest.load_plugins()
|
||||||
|
|
||||||
tasklist = provider.tasklist(manifest)
|
from tasklist import TaskList
|
||||||
|
tasklist = TaskList()
|
||||||
|
provider.modify_tasklist(tasklist, manifest)
|
||||||
tasklist.plugins(manifest)
|
tasklist.plugins(manifest)
|
||||||
|
|
||||||
from bootstrapinfo import BootstrapInformation
|
from bootstrapinfo import BootstrapInformation
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
from manifest import Manifest
|
from manifest import Manifest
|
||||||
|
|
||||||
|
|
||||||
def tasklist(manifest):
|
def modify_tasklist(tasklist, manifest):
|
||||||
from common import TaskList
|
|
||||||
from tasks import packages
|
from tasks import packages
|
||||||
from tasks import ec2
|
from tasks import ec2
|
||||||
from tasks import host
|
from tasks import host
|
||||||
task_list = TaskList()
|
tasklist.extend([packages.HostPackages(),
|
||||||
task_list.extend([packages.HostPackages(),
|
packages.ImagePackages(),
|
||||||
packages.ImagePackages(),
|
ec2.GetCredentials(),
|
||||||
ec2.GetCredentials(),
|
host.GetInfo(),
|
||||||
host.GetInfo(),
|
ec2.Connect(),
|
||||||
ec2.Connect(),
|
host.InstallPackages()
|
||||||
host.InstallPackages()
|
])
|
||||||
])
|
|
||||||
|
|
||||||
return task_list
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue