mirror of https://github.com/docker/docs.git
Restoring old supportDir method
This commit is contained in:
parent
b41fddeb7c
commit
a2d1b478e3
|
@ -38,7 +38,6 @@ var _steps = [{
|
||||||
seconds: 5,
|
seconds: 5,
|
||||||
run: Promise.coroutine(function* (progressCallback) {
|
run: Promise.coroutine(function* (progressCallback) {
|
||||||
var cmd = setupUtil.copyBinariesCmd() + ' && ' + setupUtil.fixBinariesCmd();
|
var cmd = setupUtil.copyBinariesCmd() + ' && ' + setupUtil.fixBinariesCmd();
|
||||||
|
|
||||||
if (!virtualBox.installed()) {
|
if (!virtualBox.installed()) {
|
||||||
yield virtualBox.killall();
|
yield virtualBox.killall();
|
||||||
cmd += ' && ' + setupUtil.installVirtualBoxCmd();
|
cmd += ' && ' + setupUtil.installVirtualBoxCmd();
|
||||||
|
@ -241,8 +240,6 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
|
||||||
metrics.track('Setup Failed', {
|
metrics.track('Setup Failed', {
|
||||||
step: _currentStep,
|
step: _currentStep,
|
||||||
});
|
});
|
||||||
console.log(err);
|
|
||||||
console.log(err.message);
|
|
||||||
bugsnag.notify('SetupError', err.message, {
|
bugsnag.notify('SetupError', err.message, {
|
||||||
error: err,
|
error: err,
|
||||||
output: err.message
|
output: err.message
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var exec = require('exec');
|
var exec = require('exec');
|
||||||
var Promise = require('bluebird');
|
var Promise = require('bluebird');
|
||||||
var fs = require('fs-promise');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -39,9 +39,14 @@ module.exports = {
|
||||||
return process.env[this.isWindows() ? 'USERPROFILE' : 'HOME'];
|
return process.env[this.isWindows() ? 'USERPROFILE' : 'HOME'];
|
||||||
},
|
},
|
||||||
supportDir: function () {
|
supportDir: function () {
|
||||||
var acc = path.join(this.home(), 'Library', 'Application\ Support', 'Kitematic');
|
var dirs = ['Library', 'Application\ Support', 'Kitematic'];
|
||||||
fs.mkdirsSync(acc);
|
var acc = process.env.HOME;
|
||||||
return acc;
|
dirs.forEach(function (d) {
|
||||||
|
acc = path.join(acc, d);
|
||||||
|
if (!fs.existsSync(acc)) {
|
||||||
|
fs.mkdirSync(acc);
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
CommandOrCtrl: function () {
|
CommandOrCtrl: function () {
|
||||||
return this.isWindows() ? 'Ctrl' : 'Command';
|
return this.isWindows() ? 'Ctrl' : 'Command';
|
||||||
|
|
Loading…
Reference in New Issue