[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Logging multiple builds



Dnia 2014-07-09, śro o godzinie 23:32 +0200, Anders Ingemann pisze:
[ cut ]



> 
> I just pushed to the dev branch, try giving it a go. I haven't had the
> time to create scripts myself yet, but there are some major
> improvements.
> * Manifest now takes a dict as an option, so you don't have to have
> the manifests lying around on disk (e.g. you can create them
> dynamically)
> * logging is now set up through a separate function
> * run() takes the actual manifest as an argument
> * main() is much smaller (meaning you can quite easily replicate what
> it does)
> 
> 
> To run the bootstrapping process multiple times through python you
> basically just need to:
> * set up logging once (you can use setup_loggers for that)
> 
> * create the manifest (Manifest(data={provider:...}))
> * call run() (it no longer takes the verbatim docopt dict btw)

Thanks - it is very nice change.
It allowed for small simplification of my code.
I'll test it a bit and shall let you know how it works.

Best regards.

-- 
Tomasz Rybak  GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A  488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: