Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
[#87318084] The functional code
Browse files Browse the repository at this point in the history
  • Loading branch information
oldfartdeveloper committed Feb 3, 2015
1 parent 4484f34 commit 5cdf379
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ruby-gemset
@@ -0,0 +1 @@
hipchat_api
1 change: 1 addition & 0 deletions .ruby-version
@@ -0,0 +1 @@
ruby-2.1.5
5 changes: 5 additions & 0 deletions Gemfile
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

ruby '2.1.5'

gem 'hipchat'
16 changes: 16 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,16 @@
GEM
remote: https://rubygems.org/
specs:
hipchat (1.4.0)
httparty
httparty (0.13.3)
json (~> 1.8)
multi_xml (>= 0.5.2)
json (1.8.2)
multi_xml (0.5.5)

PLATFORMS
ruby

DEPENDENCIES
hipchat
10 changes: 10 additions & 0 deletions lib/scms_deploy_notification.rb
@@ -0,0 +1,10 @@
require 'hipchat'

# Our HipChat background color assignments:
NEW_RELIC_WARNING = 'red'
PIVOTAL = 'yellow'
NEW_RELIC_RECOVERED = 'green'
SCMS_PUSHING = 'purple'

client = HipChat::Client.new(ENV['HIPCHAT_API_TOKEN'])
client['Operations'].send('Jenkins', 'CMS about to be deployed to staging', :color => SCMS_PUSHING, :notify => true)

0 comments on commit 5cdf379

Please sign in to comment.