grunt-ot-discovery

    1.1.0 • Public • Published

    grunt-ot-discovery

    Build Status NPM version Dependencies

    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)
    

    Install

    npm i grunt-ot-discovery

    DownloadsWeekly Downloads

    4

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • acolchado
    • arnoldzokas
    • matteofigus
    • ryantomlinson
    • andyroyle