Method
Reinstall
(opts *PlexpyOpts, job *jobs.Job)
Source from the content-addressed store, hash-verified
| 13 | plugins.BaseRPC |
| 14 | } |
| 15 | func (self *PlexpyRPC) Reinstall(opts *PlexpyOpts, job *jobs.Job) error { |
| 16 | err := self.base.Uninstall(&plugins.AppConfig{ContainerId: opts.ContainerId}) |
| 17 | if err != nil { |
| 18 | log.Infoln("Could not remove Docker container but since this is a reinstall we don't care.") |
| 19 | } |
| 20 | self.Install(opts, job) |
| 21 | return nil |
| 22 | } |
| 23 | |
| 24 | func (self *PlexpyRPC) Install(opts *PlexpyOpts, job *jobs.Job) error { |
| 25 | *job = *jobs.New(opts) |
Callers
nothing calls this directly
Tested by
no test coverage detected