diff --git a/generate_url_list.js b/generate_url_list.js index 3008780..bc4b588 100644 --- a/generate_url_list.js +++ b/generate_url_list.js @@ -1,17 +1,22 @@ /* eslint-disable no-unused-vars */ /* globals Session Hosts Services Meteor */ -function generateURLList () { +function generateURLList (tag) { // Generate a list of URLs for all http(s) services in the current project // // Created by: Dan Kottmann + // Updated by: Keith Thome to support tags // Usage: generateURLList() + // Usage: generateURLList('tag') // Requires client-side updates: false var projectId = Session.get('projectId') var q = { 'projectId': projectId } + if (typeof tag !== 'undefined') { + q.tags = tag + } var hosts = Hosts.find(q).fetch() if (!hosts) { console.log('No hosts found')