Tonkpils / snag

Automatic build tool for all your projects
MIT License
32 stars 4 forks source link

Handle the response of b.watch() #34

Closed zabawaba99 closed 9 years ago

zabawaba99 commented 9 years ago

Should we be handling the return of b.watch inside of bob.Watch()?

If this function returns false signifying that it shouldn't build, should we bail out?

Tonkpils commented 9 years ago

The problem with that watch is that is the initial one that loads the working directory. If we bail out then no build will ever happen.

zabawaba99 commented 9 years ago

Would that function ever return false the first time?

zabawaba99 commented 9 years ago

Would that function ever return false the first time?

Nope. It would only return false if there is no file in the current directory, which is not possible since they will always have the .snag.yml