Class: Guard::Jekyll2

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/jekyll2.rb

Instance Method Summary collapse

Constructor Details

#initialize(watchers = [], options = {}) ⇒ Jekyll2

Returns a new instance of Jekyll2.



7
8
9
# File 'lib/guard/jekyll2.rb', line 7

def initialize(watchers = [], options = {})
  super
end

Instance Method Details

#run_allObject



15
16
17
# File 'lib/guard/jekyll2.rb', line 15

def run_all
  generate!
end

#run_on_change(paths) ⇒ Object



19
20
21
22
23
24
# File 'lib/guard/jekyll2.rb', line 19

def run_on_change(paths)
  unless paths.reject{|path| path =~ /^_site/}.empty?
    UI.info "paths: #{paths.inspect}"
    generate!
  end
end

#startObject



11
12
13
# File 'lib/guard/jekyll2.rb', line 11

def start
  UI.info "Jekyll2: waiting for file changes..."
end