Class: Hightail::AppBuilder

Inherits:
Rails::AppBuilder
  • Object
show all
Defined in:
lib/hightail/app_builder.rb

Instance Method Summary collapse

Instance Method Details

#appObject



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

#bundlerObject



22
23
24
# File 'lib/hightail/app_builder.rb', line 22

def bundler
  directory 'bundle', '.bundle'
end

#database_ymlObject



14
15
16
# File 'lib/hightail/app_builder.rb', line 14

def database_yml
  template "config/databases/#{options[:database]}.yml", 'config/database.yml.example'
end

#libObject



9
10
11
12
# File 'lib/hightail/app_builder.rb', line 9

def lib
  super
  directory 'lib', nil, :force => true
end

#readmeObject



18
19
20
# File 'lib/hightail/app_builder.rb', line 18

def readme
  template 'README.md'
end

#remove_public_indexObject



36
37
38
# File 'lib/hightail/app_builder.rb', line 36

def remove_public_index
  remove_file 'public/index.html'
end

#remove_rails_logoObject



40
41
42
# File 'lib/hightail/app_builder.rb', line 40

def 
  remove_file 'app/assets/images/rails.png'
end

#rspecObject



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

#rvmObject



32
33
34
# File 'lib/hightail/app_builder.rb', line 32

def rvm
  template 'rvmrc', '.rvmrc'
end