grunt-ot-discovery
v1.1.0
Published
grunt tasks for opentable flavoured service discovery
Downloads
8
Readme
grunt-ot-discovery
Hook for ot-flavoured service-discovery.
Assumes the server is running hapi-service-discovery module (using ot-service-discovery) and has endpoints discovery/announce
and discovery/unannounce
available.
installation:
npm install --save grunt-ot-discovery
usage:
grunt.initConfig({
'ot-discovery':{
'announce': {
options: {
server: 'my.server.domain',
action: 'announce'
}
},
'unannounce': {
options: {
server: 'my.server.domain'
action: 'unannounce',
ignoreErrors: true
}
}
}
});
options:
`server`: server to hit
`action`: announce | unannounce (default announce)
`ignoreErrors`: true | false (default false)