* Add module to app's `./modules` folder. Default action is to copy. If * opts.link is truthy, create a symlink instead. * * @return {Promise}
(app, cacheEntry, moduleName, opts)
| 252 | */ |
| 253 | |
| 254 | function addModuleToApp (app, cacheEntry, moduleName, opts) { |
| 255 | trace('addModuleToApp cacheEntry:', cacheEntry); |
| 256 | moduleName = cacheEntry && cacheEntry.name || moduleName; |
| 257 | |
| 258 | if (opts.link) { |
| 259 | return linkModuleIntoApp(app, cacheEntry); |
| 260 | } else { |
| 261 | return copyModuleIntoApp(app, cacheEntry); |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * The module installation for this app is a symlink. Remind the user :) |
no test coverage detected
searching dependent graphs…