Class: Noodall::AppBuilder

Inherits:
Rails::AppBuilder
  • Object
show all
Defined in:
lib/noodall/generator.rb

Instance Method Summary collapse

Instance Method Details

#configObject



26
27
28
29
# File 'lib/noodall/generator.rb', line 26

def config
  super
  copy_file "config/sitemap.yml"
end

#database_ymlObject



8
9
10
# File 'lib/noodall/generator.rb', line 8

def database_yml
  template "config/database.yml", "config/database.yml"
end

#javascriptsObject



12
13
14
# File 'lib/noodall/generator.rb', line 12

def javascripts
  copy_file "public/javascripts/application.js"
end

#libObject



21
22
23
24
# File 'lib/noodall/generator.rb', line 21

def lib
  super
  copy_file "lib/tasks/populate.rake"
end

#testObject



16
17
18
19
# File 'lib/noodall/generator.rb', line 16

def test
  directory 'features'
  directory 'spec'
end