Class: Village::Generators::Base

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/base.rb

Overview

:nodoc:

Direct Known Subclasses

ArticlesGenerator, SetupGenerator

Class Method Summary collapse

Class Method Details



13
14
15
# File 'lib/generators/base.rb', line 13

def self.banner
  "rails generate village:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
end

.source_rootObject



9
10
11
# File 'lib/generators/base.rb', line 9

def self.source_root
  @_village_source_root = File.expand_path(File.join(File.dirname(__FILE__), 'village', generator_name, 'templates'))
end