public class FileAssetPublisher extends Object
| Constructor and Description |
|---|
FileAssetPublisher(ResolvedEnvironment environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(Path file,
String objectName,
String bucketName)
Uploads a file or a directory (zipping it before uploading) to S3 bucket.
|
public FileAssetPublisher(ResolvedEnvironment environment)
public void publish(Path file, String objectName, String bucketName) throws IOException
file - the file or directory to be uploadedobjectName - the name of the object in the bucketbucketName - the name of the bucketIOException - if I/O error occurs while uploading a file or directoryCopyright © 2022. All rights reserved.