setupSpec performs initial setup based on the cli.Context for the container
(context *cli.Context)
| 69 | |
| 70 | // setupSpec performs initial setup based on the cli.Context for the container |
| 71 | func setupSpec(context *cli.Context) (*specs.Spec, error) { |
| 72 | bundle := context.String("bundle") |
| 73 | if bundle != "" { |
| 74 | if err := os.Chdir(bundle); err != nil { |
| 75 | return nil, err |
| 76 | } |
| 77 | } |
| 78 | spec, err := loadSpec(specConfig) |
| 79 | if err != nil { |
| 80 | return nil, err |
| 81 | } |
| 82 | return spec, nil |
| 83 | } |
| 84 | |
| 85 | func revisePidFile(context *cli.Context) error { |
| 86 | pidFile := context.String("pid-file") |
no test coverage detected
searching dependent graphs…