public virtual void run(ChocolateyConfiguration configuration) { _packageService.ensure_source_app_installed(configuration); // note: you must leave the .ToList() here or else the method won't be evaluated! var packageResults = _packageService.list_run(configuration).ToList(); // if there are no results, exit with a 2. if (configuration.Features.UseEnhancedExitCodes && packageResults.Count == 0 && Environment.ExitCode == 0) { Environment.ExitCode = 2; } }
public virtual void run(ChocolateyConfiguration configuration) { _packageService.ensure_source_app_installed(configuration); // note: you must leave the .ToList() here or else the method won't be evaluated! _packageService.list_run(configuration).ToList(); }
public virtual void run(ChocolateyConfiguration configuration) { _packageService.ensure_source_app_installed(configuration); _packageService.install_run(configuration); }
public void run(ChocolateyConfiguration configuration) { _packageService.ensure_source_app_installed(configuration); _packageService.list_run(configuration, logResults: true); }