1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/fact
epriestley e397103bf2 Extend all "ManagementWorkflow" classes from a base class
Summary:
Ref T2015. Not directly related to Drydock, but I've wanted to do this for a bit.

Introduce a common base class for all the workflows in the scripts in `bin/*`. This slightly reduces code duplication by moving `isExecutable()` to the base, but also provides `getViewer()`. This is a little nicer than `PhabricatorUser::getOmnipotentUser()` and gives us a layer of indirection if we ever want to introduce more general viewer mechanisms in scripts.

Test Plan: Lint; ran some of the scripts.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D7838
2013-12-27 13:15:40 -08:00
..
application Added beta status for applications 2013-01-19 10:31:28 -08:00
controller Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
daemon Delete license headers from files 2012-11-05 11:16:51 -08:00
engine Delete license headers from files 2012-11-05 11:16:51 -08:00
extract Delete license headers from files 2012-11-05 11:16:51 -08:00
management Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00
spec Delete license headers from files 2012-11-05 11:16:51 -08:00
storage Delete license headers from files 2012-11-05 11:16:51 -08:00