Skip to content

Added feature to support the export of url lists for hosts with specific tags #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion generate_url_list.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down