* The `_install` method installs the contents of the manifest into the * specified package cache. * * @private * @method _install * @param {String} label The label for the cache. * @param {String} type The type of package cache.
(label, type)
| 514 | * @param {String} type The type of package cache. |
| 515 | */ |
| 516 | _install(label, type) { |
| 517 | this._removeLinks(label, type); |
| 518 | commands[type].invoke('install', { cwd: this.dirs[label] }); |
| 519 | this._restoreLinks(label, type); |
| 520 | |
| 521 | // If we just did a clean install we can treat it as up-to-date. |
| 522 | upgraded[label] = true; |
| 523 | } |
| 524 | |
| 525 | /** |
| 526 | * The `_upgrade` method guarantees that the contents of the manifest are |
no test coverage detected