2019-07-30 23:29:24 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-21 15:03:46 -05:00
|
|
|
require 'grape-swagger/rake/oapi_tasks'
|
|
|
|
namespace :oapi do
|
|
|
|
task gen: [:environment] do
|
|
|
|
ENV['store'] = 'tmp/openapi.json'
|
|
|
|
GrapeSwagger::Rake::OapiTasks.new(Houdini::API)
|
2019-07-30 23:29:24 +02:00
|
|
|
Rake::Task['oapi:fetch'].invoke
|
2018-05-21 15:03:46 -05:00
|
|
|
end
|
2019-07-30 23:29:24 +02:00
|
|
|
end
|