lib/travis/client/methods.rb in travis-1.8.11.travis.1059.11 vs lib/travis/client/methods.rb in travis-1.8.11.travis.1081.9
- old
+ new
@@ -82,9 +82,13 @@
raise Error, "cannot cancel a #{entity.class.one}" unless entity.cancelable?
session.post_raw("/#{entity.class.many}/#{entity.id}/cancel")
entity.reload
end
+ def logout
+ session.get_raw('/logout')
+ end
+
def listen(*entities, &block)
listener = Listener.new(session)
listener.subscribe(*entities, &block)
listener.listen
end