Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmestad committed Jan 7, 2012
1 parent ba5fff8 commit 2da56cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/janky/chat/hipchat.rb
Expand Up @@ -2,6 +2,7 @@ module Janky
module Chat
class HipChat
def initialize(settings)
puts "Chat Settings: #{settings}"
@client = ::HipChat::Client.new(settings["JANKY_CHAT_HIPCHAT_TOKEN"])
@from = settings["JANKY_CHAT_HIPCHAT_FROM"] || "CI"
end
Expand All @@ -11,6 +12,7 @@ def speak(message, room_id, options = {:color => "yellow"})
end

def rooms
puts "Rooms: #{@client.rooms}" rescue nil
@rooms ||= @client.rooms.map do |room|
Room.new(room.room_id, room.name)
end
Expand Down

0 comments on commit 2da56cb

Please sign in to comment.