lib/travis/client/methods.rb in travis-1.3.1 vs lib/travis/client/methods.rb in travis-1.4.0
- old
+ new
@@ -61,14 +61,18 @@
def user
session.find_one(User)
end
+ def accounts
+ session.find_many(Account)
+ 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
end
end
-end
\ No newline at end of file
+end