Files
dokku/plugins/repo/subcommands.go

24 lines
511 B
Go
Raw Permalink Normal View History

package repo
2017-01-03 22:27:20 -08:00
import (
2017-10-02 16:50:05 -07:00
"github.com/dokku/dokku/plugins/common"
2017-01-03 22:27:20 -08:00
)
// CommandGc runs 'git gc --aggressive' against the application's repo
func CommandGc(appName string) error {
if err := common.VerifyAppName(appName); err != nil {
return err
2017-01-03 22:27:20 -08:00
}
return RepoGc(appName)
}
// CommandPurgeCache deletes the contents of the build cache stored in the repository
func CommandPurgeCache(appName string) error {
if err := common.VerifyAppName(appName); err != nil {
return err
}
return PurgeCache(appName)
2017-01-03 22:27:20 -08:00
}