Class: Danthes::Generators::InstallGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/danthes/install_generator.rb

Instance Method Summary collapse

Methods inherited from Base

banner, source_root

Instance Method Details

#copy_filesObject



7
8
9
10
11
12
13
# File 'lib/generators/danthes/install_generator.rb', line 7

def copy_files
  template "danthes.yml", "config/danthes.yml"
  if ::Rails.version < "3.1"
    copy_file "../../../../app/assets/javascripts/danthes.js.coffee", "public/javascripts/danthes.js.coffee"
  end
  copy_file "danthes.ru", "danthes.ru"
end