@@ -80,7 +80,7 @@ def get_resource(self, filename):
80
80
81
81
return []
82
82
83
- def install_file_stub (self , target ):
83
+ def set_server_filename (self , files_install_path = None ):
84
84
"""
85
85
Installs any data associated with the resource object that is going to be deployed from the **ecFlow** server.
86
86
@@ -95,15 +95,17 @@ def install_file_stub(self, target):
95
95
assert self .fullname .count ("/" ) > 1
96
96
subpath = self .fullname [self .fullname .find ("/" , 1 ) + 1 :]
97
97
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
+ )
103
106
104
- self .save_data (target , self ._server_filename )
105
107
106
- def build_script (self ):
108
+ def generate_script (self ):
107
109
"""
108
110
Returns the installer script for the data resource.
109
111
@@ -128,7 +130,7 @@ def build_script(self):
128
130
for h in self ._hosts :
129
131
lines += h .copy_file_to (self ._server_filename , self .location ()).split ("\n " )
130
132
131
- return lines
133
+ return lines , []
132
134
133
135
def location (self ):
134
136
"""
0 commit comments