KuduClientZipExtensions.

ZipDeployFile(IKuduClient, FilePath) Method

Summary

Deploys zip file to Kudu wesite.

Syntax

public static void ZipDeployFile(this IKuduClient client, FilePath 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 zipFilePath = "./Documentation.zip";

 Zip(sourceDirectoryPath, zipFilePath);

 kuduClient.ZipDeployFile(
    zipFilePath);

Parameters

Name Type Description
client IKuduClient The Kudu client.
localPath FilePath The local source file path.

Return Value

Type Description
void