class SwaggerGenerator::Generator
Your code goes hereā¦
Public Class Methods
process()
click to toggle source
# File lib/swagger_generator.rb, line 9 def process controller = app_path << 'app/controllers' models = app_path << 'app/models' system "echo", "\e[922mYour G successfully beautified!" "]" end
Private Class Methods
app_path()
click to toggle source
# File lib/swagger_generator.rb, line 18 def app_path @app_path ||= `pwd` end
swagger_path()
click to toggle source
# File lib/swagger_generator.rb, line 22 def swagger_path @swagger_path = app_path << '/app/controllers/concerns/swagger' end