module Jekyll::Watcher
Public Instance Methods
build_listener(site, options)
Also aliased as: build_listener_without_symlinks
Alias for: build_listener_with_symlinks
build_listener_with_symlinks(site, options)
click to toggle source
# File lib/starter_web/_plugins/symlink_watcher.rb, line 30 def build_listener_with_symlinks(site, options) src = options["source"] dirs = [src] Find.find(src).each do |f| next if f == "#{src}/_drafts" and not options["show_drafts"] # TODO: willnorris, filter ignored files dirs << f if File.directory?(f) and File.symlink?(f) end require "listen" Listen.to( *dirs, :ignore => listen_ignore_paths(options), :force_polling => options['force_polling'], &(listen_handler(site)) ) end
Also aliased as: build_listener