Merge pull request #5109 from mojavelinux/issue-4858

Merge pull request 5109
This commit is contained in:
jekyllbot 2016-07-21 11:43:38 -07:00 committed by GitHub
commit f8aea7b35c
1 changed files with 7 additions and 2 deletions

View File

@ -70,9 +70,14 @@ module Jekyll
# options - A Hash of options passed to the command # options - A Hash of options passed to the command
# #
# Returns nothing. # Returns nothing.
def watch(_site, options) def watch(site, options)
External.require_with_graceful_fail "jekyll-watch" External.require_with_graceful_fail "jekyll-watch"
Jekyll::Watcher.watch(options) watch_method = Jekyll::Watcher.method(:watch)
if watch_method.parameters.size == 1
watch_method.call(options)
else
watch_method.call(options, site)
end
end end
end # end of class << self end # end of class << self
end end