Browse Source

docs:upload --rclone

Simon Legner 1 month ago
parent
commit
7bbcb5a1c9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/tasks/docs.thor

+ 2 - 2
lib/tasks/docs.thor

@@ -191,7 +191,7 @@ class DocsCLI < Thor
       puts "[S3] Syncing #{doc.path}..."
       cmd = "aws s3 sync #{File.join(Docs.store_path, doc.path)} s3://devdocs-documents/#{doc.path} --delete --profile devdocs"
       cmd << ' --dryrun' if options[:dryrun]
-      if options[:packaged]
+      if options[:rclone]
         puts "[S3] Syncing #{doc.path} using rclone..."
         cmd = "rclone sync #{File.join(Docs.store_path, doc.path)} devdocs:devdocs-documents/#{doc.path} --delete-after --progress"
         cmd << ' --dry-run' if options[:dryrun]
@@ -208,7 +208,7 @@ class DocsCLI < Thor
       puts "[S3 bundle] Uploading #{filename}..."
       cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/#{filename} --profile devdocs"
       cmd << ' --dryrun' if options[:dryrun]
-      if options[:packaged]
+      if options[:rclone]
         puts "[S3 bundle] Uploading #{filename} using rclone..."
         cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/"
         cmd << ' --dry-run' if options[:dryrun]