Skip to content

Commit

Permalink
feat: Fill out downloadFromLocalFileStorage blueprint.
Browse files Browse the repository at this point in the history
Copies remote file to local, logs it with fastify for download.
  • Loading branch information
jezhiggins committed Jun 20, 2020
1 parent eba19c6 commit 3ab1c86
Showing 1 changed file with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,31 @@
"StartAt": "CopyLocally",
"States": {
"CopyLocally": {
"Type": "Succeed"
"Type": "Task",
"Resource": "module:copyFileToLocalFolder",
"Parameters": {
"localFolderPath.$": "$.localFolderPath",
"remoteFilePath.$": "$.remoteFilePath"
},
"ResultPath": "$.localFilePath",
"Next": "DownloadFile"
},
"DownloadFile": {
"Type": "Task",
"Resource": "module:fileDownloading",
"Parameters": {
"filePath.$": "$.localFilePath",
"deleteAfterDownload": true
},
"ResultPath": "$.downloadUrl",
"Next": "Immediate"
},
"Immediate": {
"Type": "Pass",
"Result": {
"immediateDownload": true
},
"End": true
}
},
"restrictions": [
Expand Down

0 comments on commit 3ab1c86

Please sign in to comment.