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:
parent
63e0782e32
commit
c3535e6ed3
8 changed files with 213 additions and 36 deletions
13
bin/lamassu-migrate-config
Executable file
13
bin/lamassu-migrate-config
Executable 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)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue