Add statebag to basis

This commit is contained in:
sophia 2021-09-16 12:01:12 -05:00 committed by Paul Hinze
parent 881502654b
commit f845222c44
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -41,6 +41,7 @@ type Basis struct {
mappers []*argmapper.Func
dir *datadir.Basis
ctx context.Context
statebag StateBag
m sync.Mutex
client *serverclient.VagrantClient
@ -191,6 +192,10 @@ func (b *Basis) Client() *serverclient.VagrantClient {
return b.client
}
func (b *Basis) State() *StateBag {
return &b.statebag
}
// Returns the detected host for the current platform
func (b *Basis) Host() (host core.Host, err error) {
hosts, err := b.typeComponents(b.ctx, component.HostType)