KuduClientAliases.

KuduClient(ICakeContext, string, string, string) Method

Summary

Get a Kudu client using supplied.
Assembly
Cake.Kudu.Client.dll
Namespace
Cake.Kudu.Client
Containing Type
KuduClientAliases

Syntax

public static IKuduClient KuduClient(this ICakeContext context, string baseUri, string userName, string password)

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);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
baseUri string The base uri for site Kudu environment.
userName string The user name used to authenticate agains Kudu api.
password string The password used to authenticate agains Kudu api.

Return Value

Type Description
IKuduClient A new instance of a .