Class: Stratagem::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Generators::InstallBase
Defined in:
lib/generators/stratagem/install/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Generators::InstallBase

#append_yml, #create_all, #create_config, #create_database, #create_scripts, #create_tasks

Class Method Details

.gem_rootObject



11
12
13
# File 'lib/generators/stratagem/install/install_generator.rb', line 11

def self.gem_root
  File.expand_path("../../../../../", __FILE__)
end

.source_rootObject



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

#generateObject



7
8
9
# File 'lib/generators/stratagem/install/install_generator.rb', line 7

def generate
  create_all(self)
end