Skip to content

Commit

Permalink
made a mistake in formatting the json file for the watches
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Fode committed Nov 25, 2014
1 parent 8031632 commit 8e0f7e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions resources/event_watch_def.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ def to_json

def to_hash
hash = {
type: "event"
watches:[
{
type: 'event',
name: name,
handler: handler
}
]
}
hash[:name] = name
hash[:handler] = handler unless handler.nil?
hash
end
10 changes: 7 additions & 3 deletions resources/key_watch_def.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ def to_json

def to_hash
hash = {
type: "key"
watches:[
{
type: 'key',
key: key,
handler: handler
}
]
}
hash[:key] = key
hash[:handler] = handler
hash
end

0 comments on commit 8e0f7e6

Please sign in to comment.