Skip to content

Commit

Permalink
[api] Refactor Backend::Api::Worker
Browse files Browse the repository at this point in the history
...to use Backend::Api::Connection calls
  • Loading branch information
Moises Deniz Aleman committed Sep 29, 2017
1 parent 9473ed0 commit 04f1df1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/lib/backend/api/build_results/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ module Backend
module Api
module BuildResults
class Worker
extend Backend::ConnectionHelper

# Returns the worker status
def self.status
Backend::Connection.get('/build/_workerstatus').body.force_encoding("UTF-8")
get('/build/_workerstatus')
end
end
end
Expand Down

0 comments on commit 04f1df1

Please sign in to comment.