1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 07:42:40 +01:00
phorge-phorge/src/applications/drydock
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 Provide a Drydock "Console" controller 2013-12-26 12:30:36 -08:00
blueprint Make Drydock more broadly aware of policies 2013-12-27 13:15:19 -08:00
constants Use ApplicationSearch for Drydock Resources 2013-12-26 12:30:10 -08:00
controller Make Drydock more broadly aware of policies 2013-12-27 13:15:19 -08:00
interface Implement "Upload Artifact" build step 2013-12-06 14:11:05 +11:00
management Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00
phid Make Drydock Lease and Resource PHIDs use newer PHID infrastructure 2013-12-26 12:29:58 -08:00
query Introduce DrydockQuery to slightly reduce code duplication 2013-12-27 13:15:30 -08:00
storage Make Drydock more broadly aware of policies 2013-12-27 13:15:19 -08:00
util Restructure Drydock so that blueprints are instances in the DB 2013-12-03 11:09:07 +11:00
worker Make Drydock more broadly aware of policies 2013-12-27 13:15:19 -08:00