Lamassu update script changes (#126)

* lamassu-migrate-config script added + lamassu-default.json

* lamassu update script changes

* lamassu-update unit test added
This commit is contained in:
Fabio Cigliano 2018-06-16 22:55:42 +12:00 committed by Josh Harvey
parent 63e0782e32
commit c3535e6ed3
8 changed files with 213 additions and 36 deletions

13
bin/lamassu-migrate-config Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env node
const migrate = require('../lib/migrate-options')
migrate.run()
.then(() => {
console.log('lamassu.json Migration succeeded.')
process.exit(0)
})
.catch(err => {
console.error('lamassu.json Migration failed: %s', err)
process.exit(1)
})