class Thunderer::Generators::InstallGenerator

Public Class Methods

source_root() click to toggle source
# File lib/generators/thunderer/install_generator.rb, line 4
def self.source_root
  File.dirname(__FILE__) + '/templates'
end

Public Instance Methods

copy_files() click to toggle source
# File lib/generators/thunderer/install_generator.rb, line 8
def copy_files
  template 'thunderer.yml', 'config/thunderer.yml'
  if ::Rails.version < '3.1'
    copy_file '../../../../app/assets/javascripts/thunderer.js', 'public/javascripts/thunderer.js'
    copy_file '../../../../app/assets/javascripts/thunderer_interceptor.js', 'public/javascripts/thunderer_interceptor.js'
    copy_file '../../../../app/assets/javascripts/thunderer_subscription_service.js', 'public/javascripts/thunderer_subscription_service.js'
  end
  copy_file 'thunderer.ru', 'thunderer.ru'
  copy_file 'thunderer.rb', 'app/config/initializers/thunderer.rb'
end