21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/compass-growl.rb', line 21
def run_callback(event, *args)
case event
when :stylesheet_saved
GrowlNotify.normal(:title => 'Compass', :description => "Stylesheet: #{File.basename(args.first)} saved")
when :sprite_saved
GrowlNotify.normal(:title => 'Compass', :description => "Sprite: #{File.basename(args.first)} saved")
when :stylesheet_error
GrowlNotify.normal(:title => 'Compass', :description => "Stylesheet Error: #{File.basename(args.first)} \n had the following error:\n #{args.last}")
end
old_run_callback(event, *args)
end
|