Class: Merb::Generators::MerbStackGenerator
Class Method Summary
collapse
Instance Method Summary
collapse
#gems_for_orm, #gems_for_template_engine, #gems_for_testing_framework, #initialize, #merb_gems_version
#class_name, #file_name, #initialize, #symbol_name, #test_class_name
Methods inherited from Generator
#go_up, #initialize, #with_modules
#error, #success, #warning
Class Method Details
.common_templates_dir ⇒ Object
14
15
16
17
|
# File 'lib/generators/merb/merb_stack.rb', line 14
def self.common_templates_dir
File.expand_path(File.join(File.dirname(__FILE__), '..',
'templates', 'application', 'common'))
end
|
.source_root ⇒ Object
10
11
12
|
# File 'lib/generators/merb/merb_stack.rb', line 10
def self.source_root
File.join(super, 'application', 'merb_stack')
end
|
Instance Method Details
#common_templates_dir ⇒ Object
23
24
25
|
# File 'lib/generators/merb/merb_stack.rb', line 23
def common_templates_dir
self.class.common_templates_dir
end
|
#destination_root ⇒ Object
19
20
21
|
# File 'lib/generators/merb/merb_stack.rb', line 19
def destination_root
File.join(@destination_root, base_name)
end
|
#dm_gems_version ⇒ Object
#do_gems_version ⇒ Object
#orm ⇒ Object
31
32
33
|
# File 'lib/generators/merb/merb_stack.rb', line 31
def orm
:datamapper
end
|
#testing_framework ⇒ Object
27
28
29
|
# File 'lib/generators/merb/merb_stack.rb', line 27
def testing_framework
:rspec
end
|