lib/travis/client/methods.rb in travis-1.5.6.travis.297.4 vs lib/travis/client/methods.rb in travis-1.5.6.travis.299.4

- old
+ new

@@ -59,9 +59,15 @@ alias log artifact def user session.find_one(User) + rescue NotFound + raise NotLoggedIn, 'currently not logged in' + end + + def account(name) + session.find_one(Account, name) end def accounts session.find_many(Account, :all => true) end