fix: correct stickler issues
This commit is contained in:
@@ -183,5 +183,5 @@ func CommandUnlock(args []string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return errors.New("Unable to remove deploy lock.")
|
return errors.New("Unable to remove deploy lock")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/dokku/dokku/plugins/common"
|
"github.com/dokku/dokku/plugins/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TriggerAppCreateis a trigger to create an app
|
// TriggerAppCreate is a trigger to create an app
|
||||||
func TriggerAppCreate(appName string) error {
|
func TriggerAppCreate(appName string) error {
|
||||||
return createApp(appName)
|
return createApp(appName)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ func AppRoot(appName string) string {
|
|||||||
return fmt.Sprintf("%v/%v", dokkuRoot, appName)
|
return fmt.Sprintf("%v/%v", dokkuRoot, appName)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checks for confirmation on destructive actions
|
// AskForDestructiveConfirmation checks for confirmation on destructive actions
|
||||||
func AskForDestructiveConfirmation(name string, objectType string) error {
|
func AskForDestructiveConfirmation(name string, objectType string) error {
|
||||||
LogWarn("WARNING: Potentially Destructive Action")
|
LogWarn("WARNING: Potentially Destructive Action")
|
||||||
LogWarn(fmt.Sprintf("This command will destroy %v %v.", objectType, name))
|
LogWarn(fmt.Sprintf("This command will destroy %v %v.", objectType, name))
|
||||||
@@ -720,6 +720,7 @@ func removeContainers(containerIDs []string) {
|
|||||||
rmCmd.Execute()
|
rmCmd.Execute()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RemoveImages removes images by ID
|
||||||
func RemoveImages(imageIDs []string) {
|
func RemoveImages(imageIDs []string) {
|
||||||
command := []string{
|
command := []string{
|
||||||
DockerBin(),
|
DockerBin(),
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package config
|
|||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
|
// TriggerConfigGet returns an app config value by key
|
||||||
func TriggerConfigGet(appName string, key string) error {
|
func TriggerConfigGet(appName string, key string) error {
|
||||||
value, ok := Get(appName, key)
|
value, ok := Get(appName, key)
|
||||||
if ok {
|
if ok {
|
||||||
@@ -11,6 +12,7 @@ func TriggerConfigGet(appName string, key string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TriggerConfigGet returns a global config value by key
|
||||||
func TriggerConfigGetGlobal(key string) error {
|
func TriggerConfigGetGlobal(key string) error {
|
||||||
value, ok := Get("--global", key)
|
value, ok := Get("--global", key)
|
||||||
if ok {
|
if ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user