Class: Ahn::Generators::Base

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

Overview

:nodoc:

Direct Known Subclasses

AppGenerator, DeploymentGenerator

Class Method Summary collapse

Class Method Details



10
11
12
# File 'lib/generators/ahn.rb', line 10

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

.source_rootObject



6
7
8
# File 'lib/generators/ahn.rb', line 6

def self.source_root
  @_ahn_source_root ||= File.expand_path File.join(File.dirname(__FILE__), 'ahn', generator_name, 'templates')
end