public
Description: A bandwidth-quota monitor for TPG users that sits in your OS X menubar.
Homepage: http://www.bjeanes.com/
Clone URL: git://github.com/bjeanes/tipi.git
Click here to lend your support to: tipi and make a donation at www.pledgie.com !
tipi / rb_main.rb
100644 24 lines (20 sloc) 0.481 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# rb_main.rb
# Tipi
#
# Created by Bodaniel Jeanes on 15/04/08.
# Copyright (c) 2008 bjeanes.com. All rights reserved.
#
 
require 'osx/cocoa'
 
def rb_main_init
  path = OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation
  rbfiles = Dir.entries(path).select {|x| /\.rb\z/ =~ x}
  rbfiles -= [ File.basename(__FILE__) ]
  rbfiles.each do |path|
    require( File.basename(path) )
  end
end
 
if $0 == __FILE__ then
  rb_main_init
  OSX.NSApplicationMain(0, nil)
end