29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/compass-growl.rb', line 29
def init
CompassGrowl.growl(STYLESHEET_ERROR, "Compass Growl has been initialized")
config = Compass.configuration
config.on_stylesheet_saved do |filename|
CompassGrowl.growl(STYLESHEET_SAVED, "Stylesheet: #{File.basename(filename)} saved")
end
config.on_sprite_saved do |filename|
CompassGrowl.growl(SPRITE_SAVED, "Sprite: #{File.basename(filename)} saved")
end
config.on_stylesheet_error do |filename, error|
CompassGrowl.growl(STYLESHEET_ERROR, "Stylesheet Error: #{File.basename(filename)} \n had the following error:\n #{error}")
end
end
|