(c *stdapi.Context)
| 1118 | } |
| 1119 | |
| 1120 | func (s *Server) ServiceRestart(c *stdapi.Context) error { |
| 1121 | if err := s.hook("ServiceRestartValidate", c); err != nil { |
| 1122 | return err |
| 1123 | } |
| 1124 | |
| 1125 | app := c.Var("app") |
| 1126 | name := c.Var("name") |
| 1127 | |
| 1128 | err := s.provider(c).WithContext(c.Context()).ServiceRestart(app, name) |
| 1129 | if err != nil { |
| 1130 | return err |
| 1131 | } |
| 1132 | |
| 1133 | return c.RenderOK() |
| 1134 | } |
| 1135 | |
| 1136 | func (s *Server) ServiceUpdate(c *stdapi.Context) error { |
| 1137 | if err := s.hook("ServiceUpdateValidate", c); err != nil { |
nothing calls this directly
no test coverage detected