Sha256: 994d3d3b47a90529ca83dd003b4ed1a884352325b7fb2042352a861374689c3d
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
require 'guard/compat/plugin' require 'jekyll' module Guard class Jekyll < Plugin def start Compat::UI.info 'Guard::Jekyll is watching for file changes' rebuild end def run_all rebuild end def run_on_modifications(paths) rebuild end private # rebuilds the entire jekyll site # def rebuild Compat::UI.info 'Guard::Jekyll regenerating' site = ::Jekyll::Site.new(::Jekyll.configuration(options)) site.process Compat::UI.info 'Guard::Jekyll done.' rescue Exception => e Compat::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.5.0 | lib/guard/jekyll.rb |