Class: Xapit::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/xapit/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/xapit/install_generator.rb', line 4

def self.source_root
  File.dirname(__FILE__) + "/templates"
end

Instance Method Details

#copy_filesObject



8
9
10
11
# File 'lib/generators/xapit/install_generator.rb', line 8

def copy_files
  copy_file "xapit.yml", "config/xapit.yml"
  copy_file "xapit.ru", "xapit.ru"
end