MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / _setup

Method _setup

lib/utilities/windows-admin.js:74–79  ·  view source on GitHub ↗

* sets up a WindowsSymlinkChecker * * providing it with defaults for: * * * if we are on windows * * if we can symlink * * a reference to exec * * @private * @method _setup * @param UI {UI} * @return {WindowsSymlinkChecker}

(ui)

Source from the content-addressed store, hash-verified

72 * @return {WindowsSymlinkChecker}
73 */
74 static _setup(ui) {
75 const exec = require('child_process').exec;
76 const symlinkOrCopy = require('symlink-or-copy');
77
78 return new WindowsSymlinkChecker(ui, /^win/.test(process.platform), symlinkOrCopy.canSymlink, exec);
79 }
80
81 /**
82 * @public

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected