Class: Guard::Jekyll2
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Jekyll2
constructor
A new instance of Jekyll2.
- #run_all ⇒ Object
- #run_on_change(paths) ⇒ Object
- #start ⇒ Object
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 = [], = {}) super end |
Instance Method Details
#run_all ⇒ Object
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 |
#start ⇒ Object
11 12 13 |
# File 'lib/guard/jekyll2.rb', line 11 def start UI.info "Jekyll2: waiting for file changes..." end |