KuduClientZipExtensions.

ZipRunFromDirectory(IKuduClient, DirectoryPath) Method

Summary

Deploy local directory to KuduWebsite as read only Zip file system

Syntax

public static FilePath ZipRunFromDirectory(this IKuduClient client, DirectoryPath localPath)

Examples

 #addin nuget:?package=Cake.Kudu.Client

 string  baseUri     = EnvironmentVariable("KUDU_CLIENT_BASEURI"),
         userName    = EnvironmentVariable("KUDU_CLIENT_USERNAME"),
         password    = EnvironmentVariable("KUDU_CLIENT_PASSWORD");

 IKuduClient kuduClient = KuduClient(
     baseUri,
     userName,
     password);

 DirectoryPath sourceDirectoryPath = "./Documentation/";

 FilePath deployFilePath = kuduClient.ZipRunFromDirectory(sourceDirectoryPath);

 Information("Deployed to {0}", deployFilePath);

Parameters

Name Type Description
client IKuduClient The Kudu client.
localPath DirectoryPath The local directory path.

Return Value

Type Description
FilePath The path of deployed Zip.