class SwaggerGenerator
Public Instance Methods
copy_example_yml()
click to toggle source
# File lib/generators/swagger/swagger_generator.rb, line 4 def copy_example_yml copy_file 'example.yml', "lib/swagger/#{WestfieldSwagger.api_version}.yml" copy_file 'spec.rb', 'spec/requests/swagger_spec.rb' route "mount WestfieldSwagger::Engine, at: '/'\n" end