module Hightail
  class AppBuilder < Rails::AppBuilder
    def app
      super
      directory 'app_overrides', 'app', :force => true
    end

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

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

    def readme
      template 'README.md'
    end

    def rspec
      copy_file 'rspec', '.rspec'
      template 'spec/spec_helper.rb'
      empty_directory_with_gitkeep 'spec/support'
    end

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

    def remove_public_index
      remove_file 'public/index.html'
    end

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

module Hightail
  class AppBuilder < Rails::AppBuilder
    def app
      super
      remove_file 'app/views/layouts/application.html.erb'
      directory 'app_overrides', 'app', :force => true
    end

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

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

    def readme
      template 'README.md'
    end

    def rspec
      copy_file 'rspec', '.rspec'
      template 'spec/spec_helper.rb'
      empty_directory_with_gitkeep 'spec/support'
    end

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

    def remove_public_index
      remove_file 'public/index.html'
    end

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

Make sure there's only one application layout.
Make sure there's only one application layout.
