Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
make GetDockerCompose private func
Browse files Browse the repository at this point in the history
  • Loading branch information
martinnirtl committed Feb 8, 2020
1 parent 5ebfb08 commit 1ed97f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/dockercompose/dockercompose.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func isEmpty(services Services) bool {
return false
}

func GetDockerCompose(filepath string, override bool) (*viper.Viper, error) {
func getDockerCompose(filepath string, override bool) (*viper.Viper, error) {
fileName := "docker-compose"
if override {
fileName = "docker-compose.override"
Expand All @@ -43,7 +43,7 @@ func GetDockerCompose(filepath string, override bool) (*viper.Viper, error) {
}

func GetVersion(filepath string) string {
dockercompose, err := GetDockerCompose(filepath, false)
dockercompose, err := getDockerCompose(filepath, false)

if err != nil {
return ""
Expand All @@ -59,15 +59,15 @@ func GetServices(filepath string) (services Services, err error) {
return
}

dockercompose, err := GetDockerCompose(filepath, false)
dockercompose, err := getDockerCompose(filepath, false)

services = Services{}

if err != nil {
return services, err
}

dockercomposeOverride, err := GetDockerCompose(filepath, true)
dockercomposeOverride, err := getDockerCompose(filepath, true)

if err == nil {
services.Base = getServicesFromStringMap(dockercompose.GetStringMap("services"))
Expand Down

0 comments on commit 1ed97f8

Please sign in to comment.