lib/travis/client/methods.rb in travis-1.4.0 vs lib/travis/client/methods.rb in travis-1.5.0

- old
+ new

@@ -65,14 +65,24 @@ def accounts session.find_many(Account) end + def broadcasts + session.find_many(Broadcast) + end + def restart(entity) # btw, internally we call this reset, not restart, as it resets the state machine # but we thought that would be too confusing session.post_raw('/requests', "#{entity.class.one}_id" => entity.id) entity.reload + end + + def listen(*entities, &block) + listener = Listener.new(session) + listener.subscribe(*entities, &block) + listener.listen end end end end