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
203 docs.each do |doc|203 docs.each do |doc|
204 filename = "#{doc.path}.tar.gz"204 filename = "#{doc.path}.tar.gz"
205 print "[S3 bundle] Uploading #{filename}..."205 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"
207 cmd << ' --dryrun' if options[:dryrun]207 cmd << ' --dryrun' if options[:dryrun]
208 system(cmd)208 system(cmd)
209 end209 end
@@ -337,7 +337,7 @@ class DocsCLI < Thor · 127 unmodified lines
337 337
338 def download_doc(doc)338 def download_doc(doc)
339 target_path = File.join(Docs.store_path, doc.path)339 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|
341 FileUtils.mkpath(target_path)341 FileUtils.mkpath(target_path)
342 file.close342 file.close
343 tar = UnixUtils.gunzip(file.path)343 tar = UnixUtils.gunzip(file.path)