public static bool IsSwaggerWebsite(this CloudOdsWebsite site) { return(site.IsInRole(CloudOdsRole.Swagger)); }
public static bool IsProductionApi(this CloudOdsWebsite site) { return(site.IsInRole(CloudOdsRole.Api) && site.IsInEnvironment(CloudOdsEnvironment.Production)); }
public static bool IsAdminApp(this CloudOdsWebsite site) { return(site.IsInRole(CloudOdsRole.AdminApp)); }
public static bool IsInEnvironment(this CloudOdsWebsite site, CloudOdsEnvironment environment) { return(site.Environment == environment); }
public static bool IsInRole(this CloudOdsWebsite site, CloudOdsRole role) { return(site.Role == role); }
public static string GetTagValue(this CloudOdsWebsite site, string tagName) { return(site.HasTag(tagName) ? site.Tags[tagName] : null); }
public static bool HasTagWithValue(this CloudOdsWebsite site, string tagName, string tagValue) { return(site.HasTag(tagName) && site.Tags[tagName].Equals(tagValue, StringComparison.InvariantCultureIgnoreCase)); }
public static bool HasTag(this CloudOdsWebsite site, string tagName) { return(site.Tags != null && site.Tags.ContainsKey(tagName)); }