Skip to content

Ignoring events while executing action #30

@afeld

Description

@afeld

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions