lib/buildbox/artifact/uploader.rb in buildbox-0.6.2 vs lib/buildbox/artifact/uploader.rb in buildbox-0.7.beta1

- old
+ new

@@ -5,23 +5,23 @@ class Artifact::Uploader include Celluloid include Celluloid::Logger def initialize(api, access_token, build, artifacts) - @api = api + @api = api @access_token = access_token - @build = build - @artifacts = artifacts + @build = build + @artifacts = artifacts end def prepare_and_upload info "Preparing #{@artifacts.count} artifacts for upload" responses = @api.create_artifacts(@access_token, @build, @artifacts) responses.each do |response| artifact = @artifacts.find { |artifact| artifact.id == response['id'] } - artifact.remote_id = response['artifact']['id'] + artifact.remote_id = response['artifact']['id'] artifact.upload_instructions = response['artifact']['uploader'] end @artifacts.each do |artifact| Celluloid::Actor[:artifact_poster_pool].async.post(@api, @access_token, @build, artifact)