refactor: drop extra args from procfile-extract
They were not necessary.
This commit is contained in:
1 parent
06ce3dfadb
commit
f9969a0e61
4 files changed
+14
-20
No files matched your search
+11
-13
@@ -139,21 +139,19 @@ func TriggerPreDeploy(appName string, imageTag string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func TriggerProcfileExtract(appName string, image string, forceExtract bool, procfilePath string) error {
|
||||
if procfilePath == "" {
|
||||
directory := filepath.Join(common.MustGetEnv("DOKKU_LIB_ROOT"), "data", "ps", appName)
|
||||
if err := os.MkdirAll(directory, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := common.SetPermissions(directory, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
procfilePath = getProcfilePath(appName)
|
||||
func TriggerProcfileExtract(appName string, image string) error {
|
||||
directory := filepath.Join(common.MustGetEnv("DOKKU_LIB_ROOT"), "data", "ps", appName)
|
||||
if err := os.MkdirAll(directory, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if forceExtract {
|
||||
if err := common.SetPermissions(directory, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
procfilePath := getProcfilePath(appName)
|
||||
|
||||
if common.FileExists(procfilePath) {
|
||||
if err := common.PlugnTrigger("procfile-remove", []string{appName, procfilePath}...); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user