Class: Repres::Dosser::SwaggerGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/repres/dosser/swagger/swagger_generator.rb

Overview

rails generate repres:dosser:swagger administration –version 2

Instance Method Summary collapse

Instance Method Details

#produceObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/generators/repres/dosser/swagger/swagger_generator.rb', line 10

def produce

  @platform_name  = file_name.downcase
  @version_number = options['version'].to_i

  generate 'repres:dosser:platform', "#{@platform_name} --version #{@version_number}"

  generate_gemfile
  generate_initializer
  generate_swagger

end