Beispiel #1
0
        class WhiteprintPrefab(Whiteprint):
            prefabs_head = [
                Prefab(Folder, {"path": path}),
            ]

            def _execute(self, mode: str):
                pass

            def _validate(self, mode: str):
                return None
Beispiel #2
0
        class WhiteprintPrefab(Whiteprint):
            prefabs_head = [
                Prefab(Pip3, {"packages": ["stone", "marchitect"]}),
            ]

            def _execute(self, mode: str):
                pass

            def _validate(self, mode: str):
                return None
Beispiel #3
0
        class WhiteprintPrefab(Whiteprint):
            prefabs_head = [
                Prefab(Apt, {"packages": ["python3", "python3-dev"]}),
            ]

            def _execute(self, mode: str):
                pass

            def _validate(self, mode: str):
                return None
Beispiel #4
0
        class WhiteprintPrefab(Whiteprint):
            prefabs_head = [
                Prefab(LineInFile, {
                    "path": path,
                    "line": contents
                }),
            ]

            def _execute(self, mode: str):
                pass

            def _validate(self, mode: str):
                return None
Beispiel #5
0
        class WhiteprintPrefab(Whiteprint):
            prefabs_head = [
                Prefab(Folder, {"path": path1}),
            ]

            @classmethod
            def _compute_prefabs_head(cls, cfg: Dict[str, Any]):
                return [Prefab(Folder, {"path": cfg["path"]})]

            def _execute(self, mode: str):
                pass

            def _validate(self, mode: str):
                return None
Beispiel #6
0
 def _compute_prefabs_head(cls, cfg: Dict[str, Any]):
     return [Prefab(Folder, {"path": cfg["path"]})]