Skip to content

Instantly share code, notes, and snippets.

@HashNuke
Created July 9, 2014 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HashNuke/4fc8eaaccb7ac65c2d21 to your computer and use it in GitHub Desktop.
Save HashNuke/4fc8eaaccb7ac65c2d21 to your computer and use it in GitHub Desktop.
Rotor.watch :all_files_in_project_root, ["*"], fn(changed, all)->
IO.inspect "CHANGED FILES"
IO.inspect changed
IO.inspect "ALL FILES"
IO.inspect all
end
# Options can be passed as a 4th arg after the rotor function.
# Currently available option is `interval`.
# Default polling interval is 2500 (2.5 seconds).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment