feat: cleanup IP and PORT files on app clone

This commit is contained in:
Jose Diaz-Gonzalez
2018-12-27 05:01:45 -05:00
parent 34d248a28c
commit cfd8f237df
4 changed files with 45 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
package main
import (
"flag"
"os"
"github.com/dokku/dokku/plugins/network"
)
// cleanup network files for a new app clone
func main() {
flag.Parse()
appName := flag.Arg(1)
success := network.PostAppCloneSetup(appName)
if !success {
os.Exit(1)
}
}