Class: Guard::GitScribe
- Inherits:
-
Guard
- Object
- Guard
- Guard::GitScribe
- Defined in:
- lib/guard/git-scribe.rb
Instance Method Summary collapse
Instance Method Details
#run_all ⇒ Object
9 10 11 |
# File 'lib/guard/git-scribe.rb', line 9 def run_all true end |
#run_on_change(paths) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/guard/git-scribe.rb', line 13 def run_on_change(paths) UI.info "git-scribe is generating a new SITE from the book..." output = `git scribe gen site` command_failure = ($?.to_i != 0) asciidoc_warning = output =~ /asciidoc: WARNING/ if command_failure || asciidoc_warning UI.error output UI.error "*"*80 UI.error "Errors in generation listed above!" UI.error "*"*80 else UI.info "Done." end end |
#start ⇒ Object
5 6 7 |
# File 'lib/guard/git-scribe.rb', line 5 def start UI.info "git-scribe is waiting for book changes..." end |