File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
from typing import Union
6
6
7
7
import click
8
+ from ape .utils .os import clean_path
8
9
9
10
DOCKERFILE_CONTENT = """
10
11
FROM ghcr.io/apeworx/silverback:stable
@@ -65,6 +66,7 @@ def generate_dockerfiles(self, path: PathType):
65
66
"""
66
67
Will generate a file based on path type
67
68
"""
69
+ raise NotImplementedError (f"Path type { type (path )} not supported" )
68
70
69
71
@generate_dockerfiles .register
70
72
def _ (self , path : FilePath ):
@@ -93,7 +95,7 @@ def _build_helper(self, dockerfile_c: str):
93
95
dockerfile_path = Path .cwd () / ".silverback-images" / self .dockerfile_name
94
96
dockerfile_path .parent .mkdir (exist_ok = True )
95
97
dockerfile_path .write_text (dockerfile_c .strip () + "\n " )
96
- click .echo (f"Generated { dockerfile_path } " )
98
+ click .echo (f"Generated { clean_path ( dockerfile_path ) } " )
97
99
98
100
def _check_for_requirements (self , dockerfile_content ):
99
101
if (Path .cwd () / "requirements.txt" ).exists ():
You can’t perform that action at this time.
0 commit comments