Browse files

Issue 249 - programmatic examples didn't work

Turns out calling start re-evaluates the guardfile so the evaluate_guardfile has no effect.
  • Loading branch information...
1 parent e0f6bd3 commit c0e65e35991744d987aa8730e459b0786e392be7 @oreoshake oreoshake committed Mar 1, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 README.md
View
6 README.md
@@ -811,8 +811,7 @@ Evaluate a `Guardfile`:
require 'guard'
Guard.setup
-Guard::Dsl.evaluate_guardfile(:guardfile => '/path/to/Guardfile')
-Guard.start
+Guard.start(:guardfile => '/path/to/Guardfile')
```
Evaluate a string as `Guardfile`:
@@ -828,8 +827,7 @@ guardfile = <<-EOF
end
EOF
-Guard::Dsl.evaluate_guardfile(:guardfile_contents => guardfile)
-Guard.start
+Guard.start(:guardfile_contents => guardfile)
```
Issues

0 comments on commit c0e65e3

Please sign in to comment.