def download(key, filepath)
      log "downloading #{key} from #{container_path}"
      object_path = File.join(container_path, Raca::Util.url_encode(key))
      outer_response = storage_client.get(object_path) do |response|
        File.open(filepath, 'wb') do |io|
          response.read_body do |chunk|
            io.write(chunk)
          end
        end
      end
      outer_response["Content-Length"].to_i
    end
def download(key, filepath)
      log "downloading #{key} from #{container_path}"
      object_path = File.join(container_path, Raca::Util.url_encode(key))
      outer_response = storage_client.get(object_path) do |response|
        File.open(filepath, 'wb') do |io|
          response.read_body do |chunk|
            io.write(chunk)
          end
        end
      end
      outer_response["Content-Length"].to_i
    end
Download the object at key into a local file at filepath.

 Returns the number of downloaded bytes.