To use this function add it to the class library file named OrchestratorPluginSRMService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorPluginSRMService.ts
Public Function: SRMSiteGetByName
public SRMSiteGetByName(strSRMSiteName: string): SRMSite {
let arrSRMSite: SRMSite[] = this.SRMSitesGet();
let objSRMSite: SRMSite = arrSRMSite.find((objSRMSite: SRMSite): boolean => {
return objSRMSite.name === strSRMSiteName;
});
return objSRMSite;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
