Add statebag to basis
This commit is contained in:
parent
881502654b
commit
f845222c44
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user