houdini/lib/tasks/oapi.rake

11 lines
256 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'grape-swagger/rake/oapi_tasks'
namespace :oapi do
task gen: [:environment] do
ENV['store'] = 'tmp/openapi.json'
GrapeSwagger::Rake::OapiTasks.new(Houdini::API)
Rake::Task['oapi:fetch'].invoke
end
end