[devdocsgjs/main: 1497/1867] fix: remove the 'bundle' path segment




commit 32c94604a6d2c774573a504bb15ab769c76c830b
Author: Oliver Eyton-Williams <ojeytonwilliams gmail com>
Date:   Tue Feb 16 12:06:09 2021 +0100

    fix: remove the 'bundle' path segment

 lib/tasks/docs.thor | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor
index ec4f8a70..d7f93f46 100644
--- a/lib/tasks/docs.thor
+++ b/lib/tasks/docs.thor
@@ -203,7 +203,7 @@ class DocsCLI < Thor
     docs.each do |doc|
       filename = "#{doc.path}.tar.gz"
       print "[S3 bundle] Uploading #{filename}..."
-      cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/bundles/#{filename} 
--profile devdocs"
+      cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/#{filename} --profile 
devdocs"
       cmd << ' --dryrun' if options[:dryrun]
       system(cmd)
     end
@@ -337,7 +337,7 @@ class DocsCLI < Thor
 
   def download_doc(doc)
     target_path = File.join(Docs.store_path, doc.path)
-    open "https://downloads.devdocs.io/bundles/#{doc.path}.tar.gz"; do |file|
+    open "https://downloads.devdocs.io/#{doc.path}.tar.gz"; do |file|
       FileUtils.mkpath(target_path)
       file.close
       tar = UnixUtils.gunzip(file.path)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]