This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'socket' | |
| class Graphite | |
| def initialize(host) | |
| @host = host | |
| end | |
| def socket | |
| return @socket if @socket && !@socket.closed? | |
| @socket = TCPSocket.new(@host, 2003) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ABOUT: | |
| small build monitor using MacRuby and Growl | |
| RUN: | |
| macruby tci.rb | |
| CONFIG: |