Class: Merb::Generators::MerbStackGenerator

Inherits:
AppGenerator show all
Defined in:
lib/generators/merb/merb_stack.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AppGenerator

#gems_for_orm, #gems_for_template_engine, #gems_for_testing_framework, #initialize, #merb_gems_version

Methods inherited from NamedGenerator

#class_name, #file_name, #initialize, #symbol_name, #test_class_name

Methods inherited from Generator

#go_up, #initialize, #with_modules

Methods included from ColorfulMessages

#error, #success, #warning

Constructor Details

This class inherits a constructor from Merb::Generators::AppGenerator

Class Method Details

.common_templates_dirObject



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_rootObject

Paths



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_dirObject



23
24
25
# File 'lib/generators/merb/merb_stack.rb', line 23

def common_templates_dir
  self.class.common_templates_dir
end

#destination_rootObject



19
20
21
# File 'lib/generators/merb/merb_stack.rb', line 19

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

#dm_gems_versionObject



89
90
91
# File 'lib/generators/merb/merb_stack.rb', line 89

def dm_gems_version
  Merb::Generators::DM_VERSION_REQUIREMENT
end

#do_gems_versionObject



93
94
95
# File 'lib/generators/merb/merb_stack.rb', line 93

def do_gems_version
  Merb::Generators::DO_VERSION_REQUIREMENT
end

#ormObject



31
32
33
# File 'lib/generators/merb/merb_stack.rb', line 31

def orm
  :datamapper
end

#testing_frameworkObject



27
28
29
# File 'lib/generators/merb/merb_stack.rb', line 27

def testing_framework
  :rspec
end