Sha256: c17cd0330c9dbb07a70f651cafaf8d728c776e1dd029e44d678103158eef2b9e

Contents?: true

Size: 650 Bytes

Versions: 6

Compression:

Stored size: 650 Bytes

Contents

module Jekyll
  module Commands
    module Watch
      extend self

      def init_with_program(prog)
      end

      # Build your jekyll site
      # Continuously watch if `watch` is set to true in the config.
      def process(options)
        Jekyll.logger.log_level = :error if options['quiet']
        watch(site, options) if options['watch']
      end

      # Watch for file changes and rebuild the site.
      #
      # site - A Jekyll::Site instance
      # options - A Hash of options passed to the command
      #
      # Returns nothing.
      def watch(site, options)
        Jekyll::Watcher.watch(options)
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-watch-1.3.0 lib/jekyll/commands/watch.rb
jekyll-watch-1.2.1 lib/jekyll/commands/watch.rb
jekyll-watch-1.2.0 lib/jekyll/commands/watch.rb
jekyll-watch-1.1.2 lib/jekyll/commands/watch.rb
jekyll-watch-1.1.1 lib/jekyll/commands/watch.rb
jekyll-watch-1.1.0 lib/jekyll/commands/watch.rb