func AddResource(config RefreshConfig, name string, revision int) (RefreshConfig, bool) {
	c, ok := config.(executeOneByRevision)
	if !ok {
		return config, false
	}
	if len(c.resourceRevisions) == 0 {
		c.resourceRevisions = make([]transport.RefreshResourceRevision, 0)
	}
	c.resourceRevisions = append(c.resourceRevisions, transport.RefreshResourceRevision{
		Name:     name,
		Revision: revision,
	})
	return c, true

}
// AddResource adds resource revision data to a executeOne config.
// Used for install by revision.
AddResource adds resource revision data to a executeOne config.
Used for install by revision.
// AddResource adds resource revision data to a executeOne config . // Used for install by revision .
func AddResource(config RefreshConfig, name string, revision int) (RefreshConfig, bool) {
	c, ok := config.(executeOneByRevision)
	if !ok {
		return config, false
	}
	if len(c.resourceRevisions) == 0 {
		c.resourceRevisions = make([]transport.RefreshResourceRevision, 0)
	}
	c.resourceRevisions = append(c.resourceRevisions, transport.RefreshResourceRevision{
		Name:     name,
		Revision: revision,
	})
	return c, true
}
func AddResource ( config RefreshConfig , name string , revision int ) ( RefreshConfig , bool ) { c , ok := config . ( executeOneByRevision ) if ! ok { return config , false } if len ( c . resourceRevisions ) == 0 { c . resourceRevisions = make ( [ ] transport . RefreshResourceRevision , 0 ) } c . resourceRevisions = append ( c . resourceRevisions , transport . RefreshResourceRevision { Name : name , Revision : revision , } ) return c , true }
AddResource adds resource revision data to a executeOne config.
AddResource adds resource revision data to a executeOne config .