refactor: remove use of IP and PORT files from core-post-deploy plugin

This commit is contained in:
Jose Diaz-Gonzalez
2017-09-03 03:07:24 -04:00
committed by Michael Hobbs
parent 7fe2f8593c
commit dc00542b6f
5 changed files with 54 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
package main
import (
"flag"
"fmt"
"os"
network "github.com/dokku/dokku/plugins/network"
)
// write the ipaddress to stdout for a given app container
func main() {
flag.Parse()
appName := flag.Arg(0)
if network.HasNetworkConfig(appName) {
fmt.Fprintln(os.Stdout, "true")
return
}
fmt.Fprintln(os.Stdout, "false")
}