| Total Complexity | 5 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | from pathlib import Path |
|
| 53 | 1 | class Project(object): |
|
| 54 | |||
| 55 | 1 | @classmethod |
|
| 56 | def generate(cls): |
||
| 57 | 1 | root = Path.cwd() |
|
| 58 | |||
| 59 | 1 | with root.joinpath(".gitignore").open('w') as stream: |
|
| 60 | 1 | stream.write(GITIGNORE.strip() + '\n') |
|
| 61 | 1 | with root.joinpath("Makefile").open('w') as stream: |
|
| 62 | 1 | stream.write(MAKEFILE.strip() + '\n') |
|
| 63 | |||
| 64 | 1 | docs = Path("docs") |
|
| 65 | 1 | docs.mkdir(parents=True, exist_ok=True) |
|
|
|
|||
| 66 | |||
| 67 | 1 | with docs.joinpath("index.html").open('w') as stream: |
|
| 68 | 1 | stream.write(INDEX.strip() + '\n') |
|
| 69 | 1 | with docs.joinpath("osmerge.geojson").open('w') as stream: |
|
| 70 | stream.write(GEOJSON.strip() + '\n') |
||
| 71 |