func NewStemcell(s bhstemsrepo.Stemcell) Stemcell { stemcell := &Stemcell{ ManifestName: s.Name(), Version: s.Version(), OSName: s.OSName(), OSVersion: s.OSVersion(), } stemcell.AddAsSource(s) return *stemcell }
func (m StemcellOSMatch) Matches(s bhstemsrepo.Stemcell) bool { return s.OSName() == m.OSName && s.OSVersion() == m.OSVersion }