public ITaskState Create(string project, NewBuild newBuild, IBranchState branchState) { var task = newBuild.Task; switch (task) { case Tasks.Component: return(new ComponentState(newBuild, branchState, project)); case Tasks.NugetPackage: return(new NugetPackageState(newBuild, branchState, project)); case Tasks.NpmPackage: return(new NpmPackageState(newBuild, branchState, project)); default: throw new Exception($"Build steps for task '{task}' were not implementated"); } }
public NpmPackageState(NewBuild newBuild, IBranchState branchState, string project) { _newBuild = newBuild; _branchState = branchState; _project = project; }
public ComponentState(NewBuild newBuild, IBranchState branchState, IProjectState projectState) { _newBuild = newBuild; _branchState = branchState; _projectState = projectState; }
public ComponentState(NewBuild newBuild, IBranchState branchState, string project) { _newBuild = newBuild; _branchState = branchState; _project = project; }
public NugetPackageState(NewBuild newBuild, IBranchState branchState, IProjectState projectState) { _newBuild = newBuild; _branchState = branchState; _projectState = projectState; }