Class: Seivan::Generators::Base
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Seivan::Generators::Base
show all
- Defined in:
- lib/generators/seivan.rb
Overview
Class Method Summary
collapse
Class Method Details
.banner ⇒ Object
10
11
12
|
# File 'lib/generators/seivan.rb', line 10
def self.banner
"#{$0} seivan:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
end
|
.source_root ⇒ Object
6
7
8
|
# File 'lib/generators/seivan.rb', line 6
def self.source_root
@_seivan_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'seivan', generator_name, 'templates'))
end
|