LoginSignup
0
0

More than 5 years have passed since last update.

気軽に Hipchat に通知する方法

Last updated at Posted at 2015-08-08

デプロイ自動化とServerspec

例えばHipChatの場合は以下のようなスクリプトを準備しておくと良い.シェルスクリプトなので何にでも組み込める.

notify() {
  local USER=$1
  local MESSAGE=$2

  JSON="{
    \"message_format\": \"text\",
    \"message\": \"@${USER} ${MESSAGE}\",
    \"notify\": true
  }"

  curl -X POST \
      -H "Content-Type: application/json" \
      -d "${JSON}" \
      https://api.hipchat.com/v2/room/...
}

以下のように使う.

$ notify Taichi "Service out is done!"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0