cli-eb-test
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -1,1 +0,1 @@ | ||
{"timestamp":1505491369228,"version":"0.0.1"} | ||
{"timestamp":1505492575058,"version":"0.0.1"} |
@@ -11,8 +11,5 @@ const path = require('path') | ||
), | ||
targetDirectory: path.join( | ||
__dirname, | ||
'bin' | ||
) | ||
targetDirectory: __dirname | ||
}) | ||
install.install().catch(console.log) |
@@ -12,3 +12,5 @@ const fetch = require('node-fetch') | ||
this.targetDirectory = targetDirectory | ||
this.target = path.join(targetDirectory, 'dadi') | ||
this.binDirectory = path.join(targetDirectory, 'bin') | ||
this.target = path.join(this.binDirectory, 'dadi') | ||
this.targetTmp = `${this.target}.partial` | ||
@@ -18,11 +20,21 @@ } | ||
Installer.prototype.createRunner = function () { | ||
const contents = 'node updater.js && ./dadi' | ||
const runnerPath = path.join( | ||
this.targetDirectory, | ||
'runner' | ||
) | ||
const paths = { | ||
core: path.join( | ||
this.binDirectory, | ||
'dadi' | ||
), | ||
runner: path.join( | ||
this.binDirectory, | ||
'runner' | ||
), | ||
updater: path.join( | ||
this.targetDirectory, | ||
'updater.js' | ||
) | ||
} | ||
const contents = `node ${paths.updater} && ${paths.core}` | ||
fs.writeFileSync(paths.runner, contents) | ||
fs.writeFileSync(runnerPath, contents) | ||
this.setExecPermissions(runnerPath) | ||
this.setExecPermissions(paths.runner) | ||
} | ||
@@ -29,0 +41,0 @@ |
{ | ||
"name": "cli-eb-test", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A command-line tool for installation and customisation of the DADI platform", | ||
@@ -5,0 +5,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5151
154
7