added support for multiple-compose files

This commit is contained in:
Abhishek
2017-01-03 17:18:34 +05:30
parent 9c3fdaa48d
commit a5a3805760
18 changed files with 739 additions and 34 deletions
+2 -2
View File
@@ -173,12 +173,12 @@ func loadPorts(service Service) ([]kobject.Ports, string) {
}
// load dab file into KomposeObject
func (b *Bundle) LoadFile(file string) kobject.KomposeObject {
func (b *Bundle) LoadFile(files []string) kobject.KomposeObject {
komposeObject := kobject.KomposeObject{
ServiceConfigs: make(map[string]kobject.ServiceConfig),
LoadedFrom: "bundle",
}
file := files[0]
buf, err := ioutil.ReadFile(file)
if err != nil {
logrus.Fatalf("Failed to read bundles file: %s ", err)