refactor: rename CronCommand to DokkuRunCommand

This better reflects what it does.
This commit is contained in:
Jose Diaz-Gonzalez
2025-11-07 22:32:44 -05:00
parent 3915d25d84
commit b598af67b9
2 changed files with 3 additions and 3 deletions

View File

@@ -54,8 +54,8 @@ type TemplateCommand struct {
Maintenance bool `json:"maintenance"`
}
// CronCommand returns the command to run for a given cron command
func (t TemplateCommand) CronCommand() string {
// DokkuRunCommand returns the dokku run command to execute for a given cron task
func (t TemplateCommand) DokkuRunCommand() string {
if t.AltCommand != "" {
if t.LogFile != "" {
return fmt.Sprintf("%s &>> %s", t.AltCommand, t.LogFile)