Class: Terrarum::Generators::AllGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Terrarum::Generators::AllGenerator
- Defined in:
- lib/generators/all.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner ⇒ Object
9 10 11 |
# File 'lib/generators/all.rb', line 9 def self. "rails generate terrarum:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]" end |
.desc ⇒ Object
5 6 7 |
# File 'lib/generators/all.rb', line 5 def self.desc "Description:\n Creates migrations and models for all bundled data (counries and languages)" end |
Instance Method Details
#create_files ⇒ Object
13 14 15 16 |
# File 'lib/generators/all.rb', line 13 def create_files generate "terrarum:countries", "Country" generate "terrarum:languages", "Language" end |