Esempio n. 1
0
 public Installer(string token, string[] sourcePrioritization, Action <string> dispatch, PluginLocator locator)
 {
     _token          = token;
     _dispatch       = dispatch;
     _locator        = locator;
     _packageFetcher = new PackageFetcher(_token, sourcePrioritization, _dispatch);
 }
Esempio n. 2
0
 public Installer(string token, string[] sourcePrioritization, Action<string> dispatch, PluginLocator locator)
 {
     _token = token;
     _dispatch = dispatch;
     _locator = locator;
     _packageFetcher = new PackageFetcher(_token, sourcePrioritization, _dispatch);
 }
Esempio n. 3
0
 public PackageHandler(string token, Action<string> dispatch, Func<PluginLocator> locator)
 {
     _token = token;
     _dispatch = dispatch;
     _locator = locator;
     _packageFetcher = new PackageFetcher(_token, _dispatch);
     _testHandler = new PkgTestHandler(token);
 }
Esempio n. 4
0
 private void installMetaPackage(PackageFetcher.FetchedPackage source)
 {
     var package = MetaPackage.Read(source.Package);
     if (package == null) {
         _dispatch("error|Invalid meta package");
         return;
     }
     foreach (var pckg in package.Packages) {
         string[] versions = null;
         if (pckg.Version != null)
             versions = new[] {pckg.Version};
         install(pckg.Id, versions);
     }
     if (source.IsTemporaryPackage)
         File.Delete(source.Package);
 }