コード例 #1
0
        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;
            }
        }
コード例 #2
0
 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();
 }
コード例 #3
0
 public virtual void run(ChocolateyConfiguration configuration)
 {
     _packageService.ensure_source_app_installed(configuration);
     _packageService.install_run(configuration);
 }
コード例 #4
0
 public void run(ChocolateyConfiguration configuration)
 {
     _packageService.ensure_source_app_installed(configuration);
     _packageService.list_run(configuration, logResults: true);
 }