(file)
| 61 | } |
| 62 | |
| 63 | validateFile (file) { |
| 64 | if (file !== path.basename(file)) { |
| 65 | throw new Error('GitLab CI/CD pipeline file must be just a file not a path') |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | static optionsToBody (options) { |
| 70 | const { file, project, environment } = options |