refactored BuildService

This commit is contained in:
alecmerdler 2017-03-05 20:47:23 -08:00
parent 16ccc946f3
commit 7b35c0c0d5
6 changed files with 183 additions and 62 deletions

View file

@ -0,0 +1,19 @@
/**
* Service which provides helper methods for reasoning about builds.
*/
export abstract class BuildService {
/**
* Determine if the given build is active.
* @param build The build object.
* @return isActive If the given build is active.
*/
public abstract isActive(build: {phase: string}): boolean;
/**
* Generate a message based on a given phase.
* @param phase The phase type.
* @return buildMessage The message associated with the given phase.
*/
public abstract getBuildMessage(phase: string): string;
}