Skip to content

Commit 0b7779a

Browse files
SoManyHsallisaurus
authored andcommitted
Remove ServiceConfigs from Project
1 parent 68fbd66 commit 0b7779a

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

ecs-cli/modules/cli/compose/project/mock/project.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
adapter "github.com/aws/amazon-ecs-cli/ecs-cli/modules/cli/compose/adapter"
2121
context "github.com/aws/amazon-ecs-cli/ecs-cli/modules/cli/compose/context"
2222
entity "github.com/aws/amazon-ecs-cli/ecs-cli/modules/cli/compose/entity"
23-
config "github.com/docker/libcompose/config"
2423
project "github.com/docker/libcompose/project"
2524
gomock "github.com/golang/mock/gomock"
2625
)
@@ -147,16 +146,6 @@ func (_mr *_MockProjectRecorder) Scale(arg0 interface{}) *gomock.Call {
147146
return _mr.mock.ctrl.RecordCall(_mr.mock, "Scale", arg0)
148147
}
149148

150-
func (_m *MockProject) ServiceConfigs() *config.ServiceConfigs {
151-
ret := _m.ctrl.Call(_m, "ServiceConfigs")
152-
ret0, _ := ret[0].(*config.ServiceConfigs)
153-
return ret0
154-
}
155-
156-
func (_mr *_MockProjectRecorder) ServiceConfigs() *gomock.Call {
157-
return _mr.mock.ctrl.RecordCall(_mr.mock, "ServiceConfigs")
158-
}
159-
160149
func (_m *MockProject) Start() error {
161150
ret := _m.ctrl.Call(_m, "Start")
162151
ret0, _ := ret[0].(error)

ecs-cli/modules/cli/compose/project/project.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525

2626
"github.com/aws/amazon-ecs-cli/ecs-cli/modules/commands/flags"
2727
"github.com/aws/amazon-ecs-cli/ecs-cli/modules/utils/compose"
28-
"github.com/docker/libcompose/config"
2928
"github.com/docker/libcompose/project"
3029
)
3130

@@ -36,7 +35,6 @@ type Project interface {
3635
Parse() error
3736

3837
Context() *context.ECSContext
39-
ServiceConfigs() *config.ServiceConfigs
4038
ContainerConfigs() []adapter.ContainerConfig // TODO change this to a pointer to slice?
4139
VolumeConfigs() *adapter.Volumes
4240
Entity() entity.ProjectEntity
@@ -90,11 +88,6 @@ func (p *ecsProject) Context() *context.ECSContext {
9088
return p.ecsContext
9189
}
9290

93-
// ServiceConfigs returns a map of Service Configuration loaded from compose yaml file
94-
func (p *ecsProject) ServiceConfigs() *config.ServiceConfigs {
95-
return p.Project.ServiceConfigs
96-
}
97-
9891
// VolumeConfigs returns a map of Volume Configuration loaded from compose yaml file
9992
func (p *ecsProject) VolumeConfigs() *adapter.Volumes {
10093
return p.volumes

0 commit comments

Comments
 (0)