()
| 201 | } |
| 202 | |
| 203 | _getWriter() { |
| 204 | if (!this._writers) { |
| 205 | // writer is always of style "buildtime" |
| 206 | const namespaceWriter = resourceFactory.createAdapter({ |
| 207 | virBasePath: "/", |
| 208 | project: this |
| 209 | }); |
| 210 | |
| 211 | const generalWriter = resourceFactory.createAdapter({ |
| 212 | virBasePath: "/", |
| 213 | project: this |
| 214 | }); |
| 215 | |
| 216 | const collection = resourceFactory.createWriterCollection({ |
| 217 | name: `Writers for project ${this.getName()}`, |
| 218 | writerMapping: { |
| 219 | [`/resources/${this._namespace}/`]: namespaceWriter, |
| 220 | [`/test-resources/${this._namespace}/`]: namespaceWriter, |
| 221 | [`/`]: generalWriter |
| 222 | } |
| 223 | }); |
| 224 | |
| 225 | this._writers = { |
| 226 | namespaceWriter, |
| 227 | generalWriter, |
| 228 | collection |
| 229 | }; |
| 230 | } |
| 231 | return this._writers; |
| 232 | } |
| 233 | |
| 234 | _getReader(excludes) { |
| 235 | let reader = this._getSourceReader(excludes); |
no test coverage detected