Created
September 13, 2017 10:48
-
-
Save dploeger/d71452a50b89b627c51850728db1c263 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Vaulted = require('vaulted'); | |
let fs = require('fs'); | |
let myVault = new Vaulted({ | |
vault_host: 'localhost', | |
vault_port: 8200, | |
vault_ssl: false | |
}); | |
myVault.prepare() | |
.bind(myVault) | |
.then( | |
() => { | |
return myVault.write({ | |
id: 'test', | |
body: { | |
'test': 'test' | |
} | |
} | |
); | |
}) | |
.then( | |
() => { | |
return myVault.delete( | |
{id: 'test'} | |
); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment