mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
Refactoring & renaming
This commit is contained in:
parent
3dd06cffb1
commit
00f2875abf
15 changed files with 254 additions and 233 deletions
6
main.go
6
main.go
|
@ -8,7 +8,7 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/CenturyLinkLabs/watchtower/updater"
|
||||
"github.com/CenturyLinkLabs/watchtower/actions"
|
||||
"github.com/codegangsta/cli"
|
||||
)
|
||||
|
||||
|
@ -48,7 +48,7 @@ func handleSignals() {
|
|||
}
|
||||
|
||||
func before(c *cli.Context) error {
|
||||
return updater.CheckPrereqs()
|
||||
return actions.CheckPrereqs()
|
||||
}
|
||||
|
||||
func start(c *cli.Context) {
|
||||
|
@ -56,7 +56,7 @@ func start(c *cli.Context) {
|
|||
|
||||
for {
|
||||
wg.Add(1)
|
||||
if err := updater.Run(); err != nil {
|
||||
if err := actions.Update(); err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
wg.Done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue