コード例 #1
0
        public static string GetVersion(IProductServer <ProductStatus> client)
        {
            var taskStatus    = client.GetStatus();
            var productStatus = taskStatus.Result;
            var actualVersion = productStatus.Version;

            return(actualVersion);
        }
コード例 #2
0
 protected override Result RunCore(IProductServer <ProductStatus> client, Argument[] args)
 {
     ShowChefStatusOption.ShowProductStatus(client.GetStatus().Result, "InSpec");
     return(Result.Successful());
 }