-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#13 Added Config object for maturity model parser and many small impr…
…ovements to that parser
- Loading branch information
Showing
34 changed files
with
439 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from pathlib import Path | ||
|
||
from ekglib.log.various import value_error | ||
|
||
|
||
class Config: | ||
|
||
def __init__( | ||
self, | ||
model_name: str, | ||
verbose: bool, | ||
mkdocs: bool, | ||
model_root: Path, | ||
docs_root: Path, | ||
output_root: Path, | ||
fragments_root: Path | ||
): | ||
self.model_name = model_name | ||
self.verbose = verbose | ||
self.mkdocs = mkdocs | ||
self.model_root = model_root | ||
self.docs_root = docs_root | ||
self.output_root = output_root | ||
self.fragments_root = fragments_root | ||
|
||
if not self.model_root.is_dir(): | ||
raise value_error("{} is not a valid directory", self.model_root.name) | ||
if not self.docs_root.is_dir(): | ||
raise value_error("{} is not a valid directory", self.docs_root.name) | ||
if not self.fragments_root.is_dir(): | ||
raise value_error("{} is not a valid directory", self.fragments_root.name) |
Oops, something went wrong.