polkadot-secure-validator
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "polkadot-secure-validator", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"main": "src/index.js", | ||
@@ -29,3 +29,3 @@ "repository": "https://github.com/w3f/polkadot-secure-validator", | ||
"fs-extra": "^8.1.0", | ||
"handlebars": "^4.3.0", | ||
"handlebars": "^4.7.6", | ||
"node-forge": "^0.9.0", | ||
@@ -32,0 +32,0 @@ "ospath": "^1.2.2" |
@@ -44,2 +44,3 @@ [![CircleCI](https://circleci.com/gh/w3f/polkadot-secure-validator.svg?style=svg)](https://circleci.com/gh/w3f/polkadot-secure-validator) | ||
* PACKET: `TF_VAR_auth_token`. | ||
* DigitalOcean: `TF_VAR_do_token`. | ||
@@ -46,0 +47,0 @@ The tool allows you to specify which providers to use, so you don't need to have |
@@ -25,3 +25,3 @@ const path = require('path'); | ||
//return this._cmd(`all -b -m ping -i ${inventoryFileName}`, this.options); | ||
return this._cmd(`main.yml -f 30 -i ${inventoryPath}`); | ||
return this._cmd(`main.yml -f 30 -i "${inventoryPath}"`); | ||
} | ||
@@ -50,2 +50,3 @@ | ||
polkadotBinaryChecksum: this.config.polkadotBinary.checksum, | ||
chain: this.config.chain || 'kusama', | ||
polkadotNetworkId: this.config.polkadotNetworkId || 'ksmcc2', | ||
@@ -52,0 +53,0 @@ |
@@ -145,2 +145,6 @@ const fs = require('fs-extra'); | ||
if(node.image) { | ||
data.image = node.image; | ||
} | ||
const source = path.join(__dirname, '..', '..', '..', 'tpl', 'tfvars'); | ||
@@ -147,0 +151,0 @@ const target = path.join(cwd, 'terraform.tfvars'); |
@@ -6,5 +6,9 @@ const { Buffer } = require('buffer'); | ||
module.exports = { | ||
exec: async (command, options={}) => { | ||
splitCommandAndArgs: function (command) { | ||
const regex = new RegExp('"[^"]+"|[\\S]+', 'g'); | ||
return command.match(regex).map(s => s.replace(/"/g, '')); | ||
}, exec: async (command, options={}) => { | ||
return new Promise((resolve, reject) => { | ||
const items = command.split(' '); | ||
let items = module.exports.splitCommandAndArgs(command); | ||
const child = spawn(items[0], items.slice(1), options); | ||
@@ -11,0 +15,0 @@ if(options.detached) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
136771
157
521
519
Updatedhandlebars@^4.7.6