Sha256: 41f62ff7e5668975973091dcbbd802d09c149865149c26ebe421bac6883d24ce
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true namespace :docs do desc 'Generate api documentation' task generate: :environment do filename = 'swagger_v1.json' path = Rails.application.config.api[:v1_doc_path] FileUtils.mkdir_p(File.dirname(path)) Apress::Api::Swagger::Generator.new(path).generate_file puts 'Done.' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apress-api-1.24.2 | lib/tasks/docs.rake |