Class: Fetty::Generators::Base
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Fetty::Generators::Base
- Defined in:
- lib/generators/fetty.rb
Overview
:nodoc:
Direct Known Subclasses
AuthenticationGenerator, MessagesGenerator, ScaffoldGenerator, SetupGenerator, ViewsGenerator
Class Method Summary collapse
Class Method Details
.banner ⇒ Object
15 16 17 |
# File 'lib/generators/fetty.rb', line 15 def self. "rails generate fetty:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]" end |
.source_root ⇒ Object
11 12 13 |
# File 'lib/generators/fetty.rb', line 11 def self.source_root @_fetty_source_root = File.(File.join(File.dirname(__FILE__), 'fetty', generator_name, 'templates')) end |