Class: Paggi::Generators::InstallGenerator

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

Overview

Configuration files generator

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
10
11
# File 'lib/generators/paggi/install/install_generator.rb', line 7

def self.source_root
  @source_root ||= File.expand_path(
    File.join(File.dirname(__FILE__), 'templates')
  )
end

Instance Method Details

#copy_config_fileObject



13
14
15
16
# File 'lib/generators/paggi/install/install_generator.rb', line 13

def copy_config_file
  template 'config/paggi.yml'
  template 'config/initializers/paggi.rb'
end