Class: Pushkin::Generators::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/pushkin/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/pushkin/install_generator.rb', line 8

def copy_files
  template "pushkin.yml", "config/pushkin.yml"
  copy_file "pushkin.ru", "pushkin.ru"
end