public void GetAzureRuntimesProcess(string runtimeType, string manifest = null) { CloudRuntimeCollection runtimes; CloudRuntimeCollection.CreateCloudRuntimeCollection(out runtimes, manifest); WriteObject(runtimes.Where <CloudRuntimePackage>(p => string.IsNullOrEmpty(runtimeType) || p.Runtime == CloudRuntime.GetRuntimeByType(runtimeType)).ToList <CloudRuntimePackage>(), true); }
/// <summary> /// Retrieve the runtimes from the given manifest, or from the default cloud location, if none given. /// The manifest parameter is mainly a testing hook. /// </summary> /// <param name="runtimeType">The runtime type to filter by</param> /// <param name="rootPath">The path to the service in question</param> /// <param name="manifest">The path to the manifest file, if null, the default cloud manifest is used (test hook)</param> public void GetAzureRuntimesProcess(string runtimeType, string rootPath, string manifest = null) { AzureService service = new AzureService(rootPath, null); CloudRuntimeCollection runtimes = service.GetCloudRuntimes(service.Paths, manifest); WriteObject(runtimes.Where <CloudRuntimePackage>(p => string.IsNullOrEmpty(runtimeType) || p.Runtime == CloudRuntime.GetRuntimeByType(runtimeType)), true); }