MCPcopy Index your code
hub / github.com/codegangsta/gin / Run

Method Run

lib/runner.go:37–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (r *runner) Run() (*exec.Cmd, error) {
38 if r.needsRefresh() {
39 r.Kill()
40 }
41
42 if r.command == nil || r.Exited() {
43 err := r.runBin()
44 if err != nil {
45 log.Print("Error running: ", err)
46 }
47 time.Sleep(250 * time.Millisecond)
48 return r.command, err
49 } else {
50 return r.command, nil
51 }
52
53}
54
55func (r *runner) Info() (os.FileInfo, error) {
56 return os.Stat(r.bin)

Callers

nothing calls this directly

Calls 4

needsRefreshMethod · 0.95
KillMethod · 0.95
ExitedMethod · 0.95
runBinMethod · 0.95

Tested by

no test coverage detected