lib/buildbox/api.rb in buildbox-0.6.beta2 vs lib/buildbox/api.rb in buildbox-0.6.beta3
- old
+ new
@@ -52,11 +52,11 @@
def update_build(access_token, build, options)
put("#{access_token}/builds/#{build.id}", options)
end
- def create_artifact(access_token, build, options)
- post("#{access_token}/builds/#{build.id}/artifacts", options)
+ def create_artifacts(access_token, build, artifacts)
+ post("#{access_token}/builds/#{build.id}/artifacts", :artifacts => artifacts.map(&:as_json))
end
def update_artifact(access_token, build, artifact_id, options)
put("#{access_token}/builds/#{build.id}/artifacts/#{artifact_id}", options)
end