Module: Jekyll::Watcher
Instance Method Summary collapse
- #build_listener(site, options) ⇒ Object
- #ink_watch_paths(site) ⇒ Object
- #plugin_paths(plugins) ⇒ Object
Instance Method Details
#build_listener(site, options) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/octopress-ink/watch.rb', line 10 def build_listener(site, ) require 'listen' paths = [['source']].concat(ink_watch_paths(site)).compact Listen.to( *paths, :ignore => listen_ignore_paths(), :force_polling => ['force_polling'], &(listen_handler(site)) ) end |