/// <summary> /// Gets the deployment engine. /// </summary> /// <param name="app">The application.</param> /// <returns><see cref="IDeploymentEngine"/></returns> protected virtual IDeploymentEngine GetDeploymentEngine(CommandLineApplication app) { var configuration = CommandHelper.GetConfiguration() .ForPackages.Cache(_packagePath.HasValue() ? _packagePath.Value() : string.Empty); foreach (var sourceValue in _source.Values) { configuration.ForPackages.AddRemoteSource(sourceValue); } return(configuration.CreateEngine(_productPath.Value(), _framework.Value())); }
/// <summary> /// Gets the deployment engine. /// </summary> /// <param name="app">The application.</param> /// <returns><see cref="IDeploymentEngine"/></returns> protected virtual IDeploymentEngine GetDeploymentEngine(CommandLineApplication app) { return(CommandHelper.GetConfiguration().CreateEngine(_productPath.Value(), string.Empty)); }