This is a sample of how to create a configuration element using the Build Tools.
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: Samples / ConfigurationElement.conf.ts
import{ConfigElementAccessor}from"com.vmware.pscoe.library.ts.util/ConfigElementAccessor";
import{Configuration}from"vrotsc-annotations";
@Configuration({
name:"General",
path:"CompanyName",
attributes:{
Environment_Road_Sign:{type:"string",description:"",value:""},
}
})
exportclassGeneralextendsConfigElementAccessor{
constructor(){
super("CompanyName/General");
}
publicgetEnvironmentRoadSign():string{
returnthis.get<string>("Environment_Road_Sign");
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
