Skip to content

Instantly share code, notes, and snippets.

@destroytoday
Created August 28, 2011 21:30
Show Gist options
  • Save destroytoday/1177248 to your computer and use it in GitHub Desktop.
Save destroytoday/1177248 to your computer and use it in GitHub Desktop.
Adds Terminal and Growl notifications to Jekyll's build process
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