lib/r2-oas/tasks/tool.rake in r2-oas-0.3.1 vs lib/r2-oas/tasks/tool.rake in r2-oas-0.3.2
- old
+ new
@@ -9,15 +9,22 @@
namespace :routes do
namespace :oas do
desc 'Deploy OAS Document'
task deploy: [:common] do
start do
+ client_options = {}
+ client = R2OAS::Deploy::Client.new(client_options)
+
+ download_dist_th = Thread.new do
+ puts 'Download swagger-api/swagger-ui/dist ... (async)'
+ client.download_swagger_ui_dist
+ end
+
builder_options = { unit_paths_file_path: unit_paths_file_path }
builder = R2OAS::Schema::Builder.new(builder_options)
builder.build_docs
- client_options = {}
- client = R2OAS::Deploy::Client.new(client_options)
+ download_dist_th.join
client.deploy
end
end
desc 'Display paths list'