Class: Compass::Configuration::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/compass-growl.rb

Instance Method Summary collapse

Instance Method Details

#old_run_callbackObject



20
# File 'lib/compass-growl.rb', line 20

alias :old_run_callback :run_callback

#run_callback(event, *args) ⇒ Object



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