public static string GetVersion(IProductServer <ProductStatus> client) { var taskStatus = client.GetStatus(); var productStatus = taskStatus.Result; var actualVersion = productStatus.Version; return(actualVersion); }
protected override Result RunCore(IProductServer <ProductStatus> client, Argument[] args) { ShowChefStatusOption.ShowProductStatus(client.GetStatus().Result, "InSpec"); return(Result.Successful()); }