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

Commit 2ad6fd4

Browse files
author
Hao Zhang
committed
implement Deployer
1 parent 9b5633a commit 2ad6fd4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

compose/internal/composeplugin/composeplugin.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ func (wrapper *PluginWrapper) Remove(ctx context.Context, workingDir, host, proj
8181
return err
8282
}
8383

84+
// Pull images
85+
func (wrapper *PluginWrapper) Pull(ctx context.Context, workingDir, host, projectName string, filePaths []string) error {
86+
output, err := wrapper.command(newDownCommand(filePaths), workingDir, host, projectName, "")
87+
if len(output) != 0 {
88+
log.Printf("[libstack,composebinary] [message: finish deploying] [output: %s] [err: %s]", output, err)
89+
}
90+
91+
return err
92+
}
93+
94+
8495
// Command exectue a docker-compose commanåd
8596
func (wrapper *PluginWrapper) command(command composeCommand, workingDir, url, projectName, envFilePath string) ([]byte, error) {
8697
program := utils.ProgramPath(wrapper.binaryPath, "docker")

0 commit comments

Comments
 (0)