From 6c04b03f94f0b6876e56f2a5980d9a28300f307f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 20 Mar 2019 10:31:42 -0400 Subject: [PATCH] Added feature to support the export of url lists for hosts with specific tags --- generate_url_list.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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')