History

docs:upload --rclone

Simon Legner committed 1 year ago

Commit 7bbcb5a1 parent 6badddd1 file · +2 −2Browse files

Unified · Split

lib/tasks/docs.thor+2−2
@@ -191,7 +191,7 @@ class DocsCLI < Thor · 190 unmodified lines
191191 puts "[S3] Syncing #{doc.path}..."
192192 cmd = "aws s3 sync #{File.join(Docs.store_path, doc.path)} s3://devdocs-documents/#{doc.path} --delete --profile devdocs"
193193 cmd << ' --dryrun' if options[:dryrun]
194− if options[:packaged]
194+ if options[:rclone]
195195 puts "[S3] Syncing #{doc.path} using rclone..."
196196 cmd = "rclone sync #{File.join(Docs.store_path, doc.path)} devdocs:devdocs-documents/#{doc.path} --delete-after --progress"
197197 cmd << ' --dry-run' if options[:dryrun]
@@ -208,7 +208,7 @@ class DocsCLI < Thor · 10 unmodified lines
208208 puts "[S3 bundle] Uploading #{filename}..."
209209 cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/#{filename} --profile devdocs"
210210 cmd << ' --dryrun' if options[:dryrun]
211− if options[:packaged]
211+ if options[:rclone]
212212 puts "[S3 bundle] Uploading #{filename} using rclone..."
213213 cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/"
214214 cmd << ' --dry-run' if options[:dryrun]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t