This is library of System Control for MacRuby.
-
Sleeps your system
-
Controls System volume
-
Controls Screen brightness
-
Sends Wake-on-Lan.
-
Growl Notification
-
Accesses to pasteboard.
$ sudo macgem install system_control
require 'rubygems' require 'system_control' System::Sound.volume = 0.8 System::Screen.brightness = 0.5 System::Power.sleep
See here more examples.