So for various reasons I have a project that requires a build, and the files are generated in the same directory as the source files. Watchr is currently responding to every file change as they are regenerated, so I was wondering if there is a way to ignore incoming events while an action is being executed. Essentially, I want to do this:
watch('.*') do |match|
@rule.ignore = true
# run build
@rule.ignore = false
end
Any ideas are appreciated (other than making a separate build directory - I know, I know). Thanks!
So for various reasons I have a project that requires a build, and the files are generated in the same directory as the source files. Watchr is currently responding to every file change as they are regenerated, so I was wondering if there is a way to ignore incoming events while an action is being executed. Essentially, I want to do this:
Any ideas are appreciated (other than making a separate build directory - I know, I know). Thanks!