-
Notifications
You must be signed in to change notification settings - Fork 56
/
update.go
40 lines (31 loc) · 867 Bytes
/
update.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package repository
import (
"github.com/jfrog/jfrog-cli-core/utils/config"
)
type RepoUpdateCommand struct {
RepoCommand
}
func NewRepoUpdateCommand() *RepoUpdateCommand {
return &RepoUpdateCommand{}
}
func (ruc *RepoUpdateCommand) SetTemplatePath(path string) *RepoUpdateCommand {
ruc.templatePath = path
return ruc
}
func (ruc *RepoUpdateCommand) SetVars(vars string) *RepoUpdateCommand {
ruc.vars = vars
return ruc
}
func (ruc *RepoUpdateCommand) SetServerDetails(serverDetails *config.ServerDetails) *RepoUpdateCommand {
ruc.serverDetails = serverDetails
return ruc
}
func (ruc *RepoUpdateCommand) ServerDetails() (*config.ServerDetails, error) {
return ruc.serverDetails, nil
}
func (ruc *RepoUpdateCommand) CommandName() string {
return "rt_repo_update"
}
func (ruc *RepoUpdateCommand) Run() (err error) {
return ruc.PerformRepoCmd(true)
}