|
From: | Jeff Dyke |
Subject: | Re: [Fab-user] How to mix the task and runs_once decorator |
Date: | Sat, 11 Jan 2014 12:37:32 -0500 |
Regards,but this causes Fabric to not detect the task. Switching the decorator order results in the same error.def report_pending_updates():@task@runs_onceI've tried constructing my task like:However, since I have multiple hosts, it runs report_pending_updates for each host, showing the report multiple times.fab production check_for_updates report_pending_updatesHow do you mix the @task and @runs_once decorator?I have a task (check_for_updates) that checks installed Python packages on each host and records which ones need updates. I then have a task (report_pending_updates) that displays a report showing which hosts require updates. So I'm doing:
...
Chris
_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user
[Prev in Thread] | Current Thread | [Next in Thread] |