Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InstallerLibrary"/> class.
        /// </summary>
        public InstallerLibrary(IIO io, Bucket bucket, string type = "library", IFileSystem fileSystem = null, InstallerBinary installerBinary = null)
        {
            this.io         = io;
            this.bucket     = bucket;
            this.type       = type;
            this.fileSystem = fileSystem ?? new FileSystemLocal();
            downloadManager = bucket.GetDownloadManager();

            var config = bucket.GetConfig();

            vendorDir            = config.Get(Settings.VendorDir);
            this.installerBinary = installerBinary ??
                                   new InstallerBinary(io, config.Get(Settings.BinDir), config.Get(Settings.BinCompat), fileSystem);
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InstallerPlugin"/> class.
 /// </summary>
 public InstallerPlugin(IIO io, Bucket bucket, IFileSystem fileSystem = null, InstallerBinary installerBinary = null)
     : base(io, bucket, PluginManager.PluginType, fileSystem, installerBinary)
 {
     // noop.
 }