Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit f05c95f

Browse files
committed
feat(compose): added envFilePath parameter.
1 parent 224a89b commit f05c95f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compose/internal/composeplugin/composeplugin.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ func (wrapper *PluginWrapper) Remove(ctx context.Context, workingDir, host, proj
9292
}
9393

9494
// Pull images
95-
func (wrapper *PluginWrapper) Pull(ctx context.Context, workingDir, host, projectName string, filePaths []string) error {
96-
output, err := wrapper.command(newPullCommand(filePaths), workingDir, host, projectName, "")
95+
func (wrapper *PluginWrapper) Pull(ctx context.Context, workingDir, host, projectName string, filePaths []string, envFilePath string) error {
96+
output, err := wrapper.command(newPullCommand(filePaths), workingDir, host, projectName, envFilePath)
9797
if len(output) != 0 {
9898
if err != nil {
9999
return err
@@ -171,7 +171,6 @@ func newUpCommand(filePaths []string, forceRereate bool) composeCommand {
171171
return newCommand(args, filePaths)
172172
}
173173

174-
175174
func newDownCommand(filePaths []string) composeCommand {
176175
return newCommand([]string{"down", "--remove-orphans"}, filePaths)
177176
}

libstack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import (
77
type Deployer interface {
88
Deploy(ctx context.Context, workingDir, host, projectName string, filePaths []string, envFilePath string, forceRereate bool) error
99
Remove(ctx context.Context, workingDir, host, projectName string, filePaths []string) error
10-
Pull(ctx context.Context, workingDir, host, projectName string, filePaths []string) error
10+
Pull(ctx context.Context, workingDir, host, projectName string, filePaths []string, envFilePath string) error
1111
}

0 commit comments

Comments
 (0)