houdini/lib/tasks/oapi.rake
2019-08-02 19:07:29 +02:00

10 lines
256 B
Ruby

# 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