Class: Merb::Generators::MerbPluginGenerator

Inherits:
NamedGenerator show all
Defined in:
lib/generators/merb_plugin.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NamedGenerator

#class_name, #file_name, #symbol_name, #test_class_name

Methods inherited from Generator

#go_up, #with_modules

Methods included from ColorfulMessages

#error, #success, #warning

Constructor Details

#initialize(*args) ⇒ MerbPluginGenerator

Returns a new instance of MerbPluginGenerator.



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

def initialize(*args)
  Merb.disable(:initfile)
  super
end

Class Method Details

.source_rootObject



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

def self.source_root
  File.join(super, 'application', 'merb_plugin')
end

Instance Method Details

#destination_rootObject



26
27
28
# File 'lib/generators/merb_plugin.rb', line 26

def destination_root
  File.join(@destination_root, base_name)
end