houdini/lib/tasks/oapi.rake
2018-05-22 13:33:35 -05:00

8 lines
No EOL
226 B
Ruby

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