Sha256: 46c139a508eacbb35ea8302ad88f3e59c28c6baed129cf1e922aeb063608b965
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
require 'guard' require 'guard/guard' require 'jekyll' module Guard class Jekyll < Guard def start UI.info 'Guard::Jekyll is watching for file changes' rebuild end def run_all rebuild end def run_on_changes(paths) rebuild end private # rebuilds the entire jekyll site # def rebuild UI.info 'Guard::Jekyll regenerating' site = ::Jekyll::Site.new(::Jekyll.configuration(options)) site.process UI.info 'Guard::Jekyll done.' rescue Exception => e UI.error "Guard::Jekyll failed: #{e}" throw :task_has_failed end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guard-jekyll-1.4.0 | lib/guard/jekyll.rb |