a3091a3012
refs #9178
28 lines
513 B
JavaScript
28 lines
513 B
JavaScript
// # Slack API
|
|
// API for sending Test Notifications to Slack
|
|
var Promise = require('bluebird'),
|
|
common = require('../lib/common'),
|
|
slack;
|
|
|
|
/**
|
|
* ## Slack API Method
|
|
*
|
|
* **See:** [API Methods](constants.js.html#api%20methods)
|
|
* @typedef Slack
|
|
* @param slack
|
|
*/
|
|
slack = {
|
|
/**
|
|
* ### SendTest
|
|
* Send a test notification
|
|
*
|
|
* @public
|
|
*/
|
|
sendTest: function () {
|
|
common.events.emit('slack.test');
|
|
return Promise.resolve();
|
|
}
|
|
};
|
|
|
|
module.exports = slack;
|