Anders Ingemann
da4b85c0c7
Everything in base/ is now commented.
2014-03-23 16:04:03 +01:00
Anders Ingemann
f9ebd247e8
Create taskgraph out of all tasks before filtering.
...
Fixes #6
2014-02-27 23:02:57 +01:00
Anders Ingemann
0092e1c2c2
Don't instantiate tasks
...
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
2014-01-06 22:58:21 +01:00
Anders Ingemann
e1881da2bc
Simplify tasklist by passing a set to the modules
2014-01-06 22:58:21 +01:00
Anders Ingemann
663b868b41
Fix #107 . Rename before and after task properties
...
`before' becomes `successors' and `after' becomes `predecessors'
2013-11-22 09:03:47 +01:00
Anders Ingemann
cf3c861a27
Added the dry-run option
2013-10-27 18:37:43 +01:00
Anders Ingemann
f075d1f2b9
Remove ambiguous tasklist function replace()
2013-10-27 18:11:57 +01:00
Anders Ingemann
738ba47c65
Add references instead of instances to the tasklist
2013-10-27 18:11:53 +01:00
Anders Ingemann
b5c5acf5b1
PEP8-ify things.
2013-08-17 17:28:46 +02:00
Anders Ingemann
6dfdc2ed6d
make tasklist.remove() behave like discard()
2013-07-08 23:14:03 +02:00
Anders Ingemann
b8341c48e4
allow removal of multiple tasks at once
2013-07-08 23:14:03 +02:00
Anders Ingemann
29394270c6
Remove tasks not in tasklist from dependency graph
...
Use filter() for filtering instead of list comprehensions
2013-07-08 23:14:01 +02:00
Anders Ingemann
442397fb2e
Way better rollback architecture through improvements in flexibility
2013-07-08 23:14:00 +02:00
Anders Ingemann
2135cdbc1a
PEP8 fixes
2013-07-08 23:14:00 +02:00
Anders Ingemann
96028f96e1
Various improvements and additions.
...
I couldn't be bothered to untangle this, so here it goes:
* Log colors depending on loglevel
* Simplified Filelogger
* Remove description=None from basetask
* create_list creates task list from argument now
* Task rollback feature: If a task fails, the tasklist calls rollback() on the completed tasks in reverse order
* Added TaskException to common.exceptions as a base to extend from
* Added TriggerRollback task to common.tasks for development purposes
* An EBS volume for bootstrapping is now created and attached to the instance (including rollback actions)
* EC2 Connect task now depends on host.GetInfo
2013-07-08 23:14:00 +02:00
Anders Ingemann
a401f9edc0
Order by phases as well
2013-07-08 23:13:59 +02:00
Anders Ingemann
0f29b3d0e2
Cycle detection and topological sorting
2013-07-08 23:13:59 +02:00
Anders Ingemann
1e4af40b3c
Task dependencies, bogus implementation
2013-07-08 23:13:59 +02:00
Anders Ingemann
a8364fe04d
logging
2013-07-08 23:13:58 +02:00
Anders Ingemann
867fc9b276
Move taskname printout
2013-07-08 23:13:58 +02:00
Anders Ingemann
aa86b75974
Rename common module to base
2013-07-08 23:13:57 +02:00