Example #1
0
//processComponent iterates through the artifacts in the component and deploy them
func (b *Base) processComponent(c *Component, ask bool) {
	//Iterate through the component and deploy all of its providers
	var prov provider.Provider
	for providerName, artifactEntries := range c.Artifacts {
		artifacts := arrangeArtifacts(artifactEntries)
		b.processArtifacts(c, providerName, ask)

		logrus.Infof("Deploying provider: %s...", providerName)
		prov = provider.New(providerName, b.Target())
		prov.SetArtifacts(artifacts)
		prov.Init()
		prov.Deploy()
	}
}