Class: Stratagem::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Stratagem::InstallGenerator
show all
- Includes:
- Generators::InstallBase
- Defined in:
- lib/generators/stratagem/install/install_generator.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#append_yml, #create_all, #create_config, #create_database, #create_scripts, #create_tasks
Class Method Details
11
12
13
|
# File 'lib/generators/stratagem/install/install_generator.rb', line 11
def self.gem_root
File.expand_path("../../../../../", __FILE__)
end
|
.source_root ⇒ Object
15
16
17
18
|
# File 'lib/generators/stratagem/install/install_generator.rb', line 15
def self.source_root
puts "SOURCE ROOT: #{gem_root}"
File.join(gem_root, 'templates/install')
end
|
Instance Method Details
7
8
9
|
# File 'lib/generators/stratagem/install/install_generator.rb', line 7
def generate
create_all(self)
end
|