(arg)
| 5 | const { parsePackageFile } = require('../lib'); |
| 6 | |
| 7 | const dockerStop = async function (arg) { |
| 8 | let appName = arg; |
| 9 | if (!appName) { |
| 10 | let appPath = '.'; |
| 11 | let pkg = parsePackageFile(appPath); |
| 12 | appName = pkg.name; |
| 13 | } |
| 14 | try { |
| 15 | execSync(`docker stop ${appName}`); |
| 16 | execSync(`docker rm ${appName}`); |
| 17 | this.successLog(`App '${appName}' was stopped.`); |
| 18 | } catch (e) { |
| 19 | this.errorLog(`Failed to stop app '${appName}'.`); |
| 20 | } |
| 21 | process.exit(); |
| 22 | }; |
| 23 | |
| 24 | const dockerRestart = async function (arg) { |
| 25 | let appName = arg; |
nothing calls this directly
no test coverage detected
searching dependent graphs…