Unified · Split
| @@ -191,7 +191,7 @@ class DocsCLI < Thor · 190 unmodified lines | |||
| 191 | puts "[S3] Syncing #{doc.path}..." | 191 | puts "[S3] Syncing #{doc.path}..." |
| 192 | cmd = "aws s3 sync #{File.join(Docs.store_path, doc.path)} s3://devdocs-documents/#{doc.path} --delete --profile devdocs" | 192 | cmd = "aws s3 sync #{File.join(Docs.store_path, doc.path)} s3://devdocs-documents/#{doc.path} --delete --profile devdocs" |
| 193 | cmd << ' --dryrun' if options[:dryrun] | 193 | cmd << ' --dryrun' if options[:dryrun] |
| 194 | if options[:packaged] | 194 | if options[:rclone] |
| 195 | puts "[S3] Syncing #{doc.path} using rclone..." | 195 | puts "[S3] Syncing #{doc.path} using rclone..." |
| 196 | cmd = "rclone sync #{File.join(Docs.store_path, doc.path)} devdocs:devdocs-documents/#{doc.path} --delete-after --progress" | 196 | cmd = "rclone sync #{File.join(Docs.store_path, doc.path)} devdocs:devdocs-documents/#{doc.path} --delete-after --progress" |
| 197 | cmd << ' --dry-run' if options[:dryrun] | 197 | cmd << ' --dry-run' if options[:dryrun] |
| @@ -208,7 +208,7 @@ class DocsCLI < Thor · 10 unmodified lines | |||
| 208 | puts "[S3 bundle] Uploading #{filename}..." | 208 | puts "[S3 bundle] Uploading #{filename}..." |
| 209 | cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/#{filename} --profile devdocs" | 209 | cmd = "aws s3 cp #{File.join(Docs.store_path, filename)} s3://devdocs-downloads/#{filename} --profile devdocs" |
| 210 | cmd << ' --dryrun' if options[:dryrun] | 210 | cmd << ' --dryrun' if options[:dryrun] |
| 211 | if options[:packaged] | 211 | if options[:rclone] |
| 212 | puts "[S3 bundle] Uploading #{filename} using rclone..." | 212 | puts "[S3 bundle] Uploading #{filename} using rclone..." |
| 213 | cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/" | 213 | cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/" |
| 214 | cmd << ' --dry-run' if options[:dryrun] | 214 | cmd << ' --dry-run' if options[:dryrun] |