@@ -80,7 +80,7 @@ def get_resource(self, filename):
8080
8181 return []
8282
83- def install_file_stub (self , target ):
83+ def set_server_filename (self , files_install_path = None ):
8484 """
8585 Installs any data associated with the resource object that is going to be deployed from the **ecFlow** server.
8686
@@ -95,15 +95,17 @@ def install_file_stub(self, target):
9595 assert self .fullname .count ("/" ) > 1
9696 subpath = self .fullname [self .fullname .find ("/" , 1 ) + 1 :]
9797
98- self ._server_filename = os .path .join (
99- target .files_install_path (), subpath , self .name
100- )
101-
102- super ().install_file_stub (target )
98+ if files_install_path is None :
99+ self ._server_filename = os .path .join (
100+ subpath , self .name
101+ )
102+ else :
103+ self ._server_filename = os .path .join (
104+ files_install_path , self .fullname
105+ )
103106
104- self .save_data (target , self ._server_filename )
105107
106- def build_script (self ):
108+ def generate_script (self ):
107109 """
108110 Returns the installer script for the data resource.
109111
@@ -128,7 +130,7 @@ def build_script(self):
128130 for h in self ._hosts :
129131 lines += h .copy_file_to (self ._server_filename , self .location ()).split ("\n " )
130132
131- return lines
133+ return lines , []
132134
133135 def location (self ):
134136 """
0 commit comments