Class: Repres::Dosser::PlatformGenerator

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

Overview

rails generate repres:dosser:platform administration –version 2

Instance Method Summary collapse

Instance Method Details

#produceObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/generators/repres/dosser/platform/platform_generator.rb', line 10

def produce

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

  generate_controller
  generate_route

end