Navigation Menu

Skip to content

Commit

Permalink
Output notice for gcs-describe-domain
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 15, 2012
1 parent 8afa39e commit 4ba325e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/gcs-describe-domain
Expand Up @@ -47,12 +47,23 @@ function report(domain) {
console.log('======================');
}

function outputNotesForHostAndPort() {
console.log('*Note: the hostname and the port number is detected from ' +
'the default options. If you run the service with your ' +
'favorite host name and port number, then use it instead of ' +
'default information.');
}

if (commandLine.options.domainName) {
commandLine.assertDomainExists();
report(commandLine.domain);
outputNotesForHostAndPort();
} else {
var domains = CLI.Domain.getAll(commandLine.context);
domains.forEach(function(domain, index) {
if (index) console.log('');
report(domain);
});
if (domains.length)
outputNotesForHostAndPort();
}

0 comments on commit 4ba325e

Please sign in to comment.