Sha256: 81d71417d21e04709c165ece2d614058945fe436b54d7fb358965043ae326386

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

# Application template recipe for the rails3_devise_wizard. Check for a newer version here:
# https://github.com/fortuity/rails3_devise_wizard/blob/master/recipes/cleanup.rb

after_bundler do

  # remove unnecessary files
  %w{
    README
    doc/README_FOR_APP
    public/index.html
    public/images/rails.png
  }.each { |file| remove_file file }

  # add placeholder READMEs
  get "https://github.com/fortuity/rails-template-recipes/raw/master/sample_readme.txt", "README"
  get "https://github.com/fortuity/rails-template-recipes/raw/master/sample_readme.textile", "README.textile"
  gsub_file "README", /App_Name/, "#{app_name.humanize.titleize}"
  gsub_file "README.textile", /App_Name/, "#{app_name.humanize.titleize}"

  # remove commented lines from Gemfile
  # thanks to https://github.com/perfectline/template-bucket/blob/master/cleanup.rb
  gsub_file "Gemfile", /#.*\n/, "\n"
  gsub_file "Gemfile", /\n+/, "\n"

end

__END__

name: Cleanup
description: "Remove unnecessary files left over from generating a new Rails app."
author: fortuity

category: other
tags: [utilities, configuration]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails3_devise_wizard-0.2.4 recipes/cleanup.rb
rails3_devise_wizard-0.2.3 recipes/cleanup.rb
rails3_devise_wizard-0.2.2 recipes/cleanup.rb
rails3_devise_wizard-0.2.1 recipes/cleanup.rb
rails3_devise_wizard-0.2 recipes/cleanup.rb