feat: add AppHostRoot() function
This makes it a bit easier to fetch files from the host path
This commit is contained in:
@@ -80,6 +80,12 @@ func AppRoot(appName string) string {
|
||||
return fmt.Sprintf("%v/%v", dokkuRoot, appName)
|
||||
}
|
||||
|
||||
// AppRoot returns the app root path
|
||||
func AppHostRoot(appName string) string {
|
||||
dokkuHostRoot := MustGetEnv("DOKKU_HOST_ROOT")
|
||||
return fmt.Sprintf("%v/%v", dokkuHostRoot, appName)
|
||||
}
|
||||
|
||||
// AskForDestructiveConfirmation checks for confirmation on destructive actions
|
||||
func AskForDestructiveConfirmation(name string, objectType string) error {
|
||||
LogWarn("WARNING: Potentially Destructive Action")
|
||||
|
||||
Reference in New Issue
Block a user