29.07.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Envoy Task Runner 345<br />

.<br />

9 @endafter<br />

If you wish, you may also pass a custom message to send to the HipChat room. Any variables<br />

available to your Envoy tasks will also be available when constructing the message:<br />

.<br />

1 @after<br />

2 @hipchat('token', 'room', 'Envoy', "{$task} ran in the {$env} environment.")<br />

3 @endafter<br />

Slack<br />

In addition to HipChat, Envoy also supports sending notifications to Slack¹⁸¹. The @slack directive<br />

accepts a Slack hook URL, a channel name, and the message you wish to send to the channel:<br />

.<br />

1 @after<br />

2 @slack('hook', 'channel', 'message')<br />

3 @endafter<br />

You may retrieve your webhook URL by creating an Incoming WebHooks integration on Slack’s<br />

website. The hook argument should be the entire webhook URL provided by the Incoming Webhooks<br />

Slack Integration. For example:<br />

.<br />

1 https://hooks.slack.com/services/ZZZZZZZZZ/YYYYYYYYY/XXXXXXXXXXXXXXX<br />

You may provide one of the following as the channel argument:<br />

• To send the notification to a channel: #channel<br />

• To send the notification to a user: @user<br />

¹⁸¹https://slack.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!