Confirm before installing dependencies on prepare

This commit is contained in:
Kota Kanbe
2016-10-12 20:13:37 +09:00
parent cb5a6f38d6
commit 21beb396b4
6 changed files with 119 additions and 28 deletions

View File

@@ -33,8 +33,9 @@ import (
type base struct {
ServerInfo config.ServerInfo
Distro config.Distro
Platform models.Platform
Platform models.Platform
lackDependencies []string
osPackages
log *logrus.Entry
@@ -77,6 +78,10 @@ func (l base) getPlatform() models.Platform {
return l.Platform
}
func (l base) getLackDependencies() []string {
return l.lackDependencies
}
func (l base) allContainers() (containers []config.Container, err error) {
switch l.ServerInfo.Container.Type {
case "", "docker":