コード例 #1
0
 /// <summary>
 /// Deletes remote directory.
 /// </summary>
 /// <param name="client">The Kudu client.</param>
 /// <param name="remotePath">The remote target path.</param>
 /// <example>
 /// <code>
 /// #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 remoteDirectoryPath = "/site/wwwroot/hello/";
 ///
 /// kuduClient.VFSDeleteDirectory(remoteDirectoryPath);
 /// </code>
 /// </example>
 // ReSharper disable once InconsistentNaming
 public static void VFSDeleteDirectory(
     this IKuduClient client,
     DirectoryPath remotePath)
 {
     client.VFSDelete(remotePath);
 }
コード例 #2
0
 /// <summary>
 /// Deletes remote file.
 /// </summary>
 /// <param name="client">The Kudu client.</param>
 /// <param name="remotePath">The remote target path.</param>
 /// <example>
 /// <code>
 /// #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);
 ///
 /// FilePath remoteFilePath = "/site/wwwroot/hello.txt";
 /// kuduClient.VFSDeleteFile(remoteFilePath);
 /// </code>
 /// </example>
 // ReSharper disable once InconsistentNaming
 public static void VFSDeleteFile(
     this IKuduClient client,
     FilePath remotePath)
 {
     client.VFSDelete(remotePath);
 }