Class: Village::Generators::Base
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Village::Generators::Base
show all
- Defined in:
- lib/generators/base.rb
Overview
Class Method Summary
collapse
Class Method Details
.banner ⇒ Object
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_root ⇒ Object
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
|