Add support for file editor

This commit is contained in:
marcos
2018-01-05 13:13:07 -03:00
parent f564f1fd28
commit 386bd87385
32 changed files with 621 additions and 93 deletions

View File

@@ -149,3 +149,23 @@ func (p *pwd) InstanceExec(instance *types.Instance, cmd []string) (int, error)
}
return exitCode, nil
}
func (p *pwd) InstanceFSTree(instance *types.Instance) (io.Reader, error) {
defer observeAction("InstanceFSTree", time.Now())
prov, err := p.getProvisioner(instance.Type)
if err != nil {
return nil, err
}
return prov.InstanceFSTree(instance)
}
func (p *pwd) InstanceFile(instance *types.Instance, filePath string) (io.Reader, error) {
defer observeAction("InstanceFile", time.Now())
prov, err := p.getProvisioner(instance.Type)
if err != nil {
return nil, err
}
return prov.InstanceFile(instance, filePath)
}