Our machine name is "<company_name>"
A docker machine is the underlying virtual machine that your container runs on. You shouldn't really ever have to worry about it.
{"lastUpload":"2020-04-01T15:56:19.123Z","extensionVersion":"v3.4.3"} |
const { spawn } = require('child_process'); | |
const exec = (command, args = []) => { | |
return new Promise((resolve, reject) => { | |
console.log(''); | |
console.log(`${command} ${args.join(' ')}`); | |
const proc = spawn(command, args); | |
proc.stdout.pipe(process.stdout); | |
proc.stderr.pipe(process.stderr); |
// Sample demo of how to gain access to "private" variables in JavaScript, | |
// even if they'd normally be inaccessible due to the closure. | |
var Table = function () { | |
var _array = ["super", "secret", "message"]; | |
return { | |
get: function (i) { return _array[i]; }, | |
store: function (i,v) { _array[i] = v; }, | |
append: function (v) { _array.push(v); } | |
}; | |
}; |