2019-07-30 21:29:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-21 20:03:46 +00: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 21:29:24 +00:00
|
|
|
Rake::Task['oapi:fetch'].invoke
|
2018-05-21 20:03:46 +00:00
|
|
|
end
|
2019-07-30 21:29:24 +00:00
|
|
|
end
|