Created
August 28, 2011 21:30
-
-
Save destroytoday/1177248 to your computer and use it in GitHub Desktop.
Adds Terminal and Growl notifications to Jekyll's build process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class Site | |
require 'growl' | |
alias :super_process :process | |
def process | |
time = Time.now | |
super_process() | |
duration = (Time.now - time).to_i | |
puts "Compile time #{duration} seconds" | |
Growl.notify("Auto-build complete (#{duration} sec)", :title => 'Jekyll') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment