History

fix: remove the 'bundle' path segment

Oliver Eyton-Williams committed 5 years ago

Commit 32c94601 parent 23b84c11 file · +2 −2Browse files

Unified · Split

lib/tasks/docs.thor+2−2
@@ -203,7 +203,7 @@ class DocsCLI < Thor · 202 unmodified lines
203203 docs.each do |doc|
204204 filename = "#{doc.path}.tar.gz"
205205 print "[S3 bundle] Uploading #{filename}..."
206− cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/bundles/#{filename} --profile devdocs"
206+ cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/#{filename} --profile devdocs"
207207 cmd << ' --dryrun' if options[:dryrun]
208208 system(cmd)
209209 end
@@ -337,7 +337,7 @@ class DocsCLI < Thor · 127 unmodified lines
337337
338338 def download_doc(doc)
339339 target_path = File.join(Docs.store_path, doc.path)
340− open "https://downloads.devdocs.io/bundles/#{doc.path}.tar.gz" do |file|
340+ open "https://downloads.devdocs.io/#{doc.path}.tar.gz" do |file|
341341 FileUtils.mkpath(target_path)
342342 file.close
343343 tar = UnixUtils.gunzip(file.path)