Class: Hightail::AppBuilder
- Inherits:
-
Rails::AppBuilder
- Object
- Rails::AppBuilder
- Hightail::AppBuilder
- Defined in:
- lib/hightail/app_builder.rb
Instance Method Summary collapse
- #app ⇒ Object
- #bundler ⇒ Object
- #database_yml ⇒ Object
- #lib ⇒ Object
- #readme ⇒ Object
- #remove_public_index ⇒ Object
- #remove_rails_logo ⇒ Object
- #rspec ⇒ Object
- #rvm ⇒ Object
Instance Method Details
#app ⇒ Object
3 4 5 6 7 |
# File 'lib/hightail/app_builder.rb', line 3 def app super remove_file 'app/views/layouts/application.html.erb' directory 'app_overrides', 'app', :force => true end |
#bundler ⇒ Object
22 23 24 |
# File 'lib/hightail/app_builder.rb', line 22 def bundler directory 'bundle', '.bundle' end |
#database_yml ⇒ Object
14 15 16 |
# File 'lib/hightail/app_builder.rb', line 14 def database_yml template "config/databases/#{[:database]}.yml", 'config/database.yml.example' end |
#lib ⇒ Object
9 10 11 12 |
# File 'lib/hightail/app_builder.rb', line 9 def lib super directory 'lib', nil, :force => true end |
#readme ⇒ Object
18 19 20 |
# File 'lib/hightail/app_builder.rb', line 18 def readme template 'README.md' end |
#remove_public_index ⇒ Object
36 37 38 |
# File 'lib/hightail/app_builder.rb', line 36 def remove_public_index remove_file 'public/index.html' end |
#remove_rails_logo ⇒ Object
40 41 42 |
# File 'lib/hightail/app_builder.rb', line 40 def remove_rails_logo remove_file 'app/assets/images/rails.png' end |
#rspec ⇒ Object
26 27 28 29 30 |
# File 'lib/hightail/app_builder.rb', line 26 def rspec copy_file 'rspec', '.rspec' directory 'spec' empty_directory_with_gitkeep 'spec/support' end |
#rvm ⇒ Object
32 33 34 |
# File 'lib/hightail/app_builder.rb', line 32 def rvm template 'rvmrc', '.rvmrc' end |