lib/travis/client/methods.rb in travis-1.1.3 vs lib/travis/client/methods.rb in travis-1.2.0
- old
+ new
@@ -35,9 +35,17 @@
def repo(id_or_slug)
session.find_one(Repository, id_or_slug)
end
+ def worker(id)
+ session.find_one(Worker, id)
+ end
+
+ def workers(params = {})
+ session.find_many(Worker, params)
+ end
+
def build(id)
session.find_one(Build, id)
end
def job(id)
\ No newline at end of file