Skip to content

Commit 04e5b5e

Browse files
committed
add support for board_folder
1 parent b230793 commit 04e5b5e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

vetiver/rsconnect.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ def deploy_rsconnect(
5353
image: str
5454
Docker image to be specified for off-host execution
5555
"""
56-
if board.fs.protocol == "rsc":
57-
raise NotImplementedError()
58-
5956
if not title:
6057
title = pin_name + "_vetiver"
6158

@@ -67,7 +64,11 @@ def deploy_rsconnect(
6764
shutil.copyfile(file, os.path.join(temp, filename))
6865
new_files = new_files + [os.path.join(temp, filename)]
6966
extra_files = new_files
70-
67+
68+
if board.fs.protocol == "file":
69+
shutil.copytree(board.path_to_pin(pin_name), os.path.join(temp, pin_name))
70+
71+
7172
tmp_app = temp + "/app.py"
7273

7374
write_app(

0 commit comments

Comments
 (0)