lib/buildbox/api.rb in buildbox-0.2.1 vs lib/buildbox/api.rb in buildbox-0.2.2

- old
+ new

@@ -12,11 +12,11 @@ def authenticate(api_key) @api_key = api_key get("user") end - def worker(access_token, hostname) - put("workers/#{access_token}", :hostname => hostname) + def agent(access_token, hostname) + put("agents/#{access_token}", :hostname => hostname) end def scheduled_builds(project) get(project.scheduled_builds_url).map { |build| Buildbox::Build.new(build) } end