UNPKG

flipr-etcd-seed

Version:

Upload flipr config from yaml files to Etcd. Also handles validation.

17 lines (14 loc) 348 B
'use strict'; var debug = require('debug')('flipr-etcd-seed'); module.exports = getFormatGlobPattern; function getFormatGlobPattern(format) { debug('Getting format glob pattern for %s', format); switch(format) { case 'json': return 'json'; case 'yaml': return '+(yaml|yml)'; default: return '+(yaml|yml)'; } }