Skip to content

Commit

Permalink
Added a very basic example, emitting file changes to STDOUT.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Askew committed May 31, 2012
1 parent c2c54c2 commit 7ff9c25
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/simple-stdout/.emory
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'emory/handlers/stdout_handler'

# Define a handler emits any file add/modify/delete in ./src to STDOUT.
handler do
name :stdout
implementation Emory::Handlers::StdoutHandler
events :all
end

# Map ./src to the handler defined above. Note that the 'path' is relative
# to the location .emory (i.e. this file)
teleport do
path 'src'
handler :stdout
end
Empty file.

0 comments on commit 7ff9c25

Please sign in to comment.