recipes/cleanup.rb in rails_apps_composer-1.0.26 vs recipes/cleanup.rb in rails_apps_composer-1.1.0
- old
+ new
@@ -8,21 +8,12 @@
# remove unnecessary files
%w{
README
doc/README_FOR_APP
public/index.html
+ app/assets/images/rails.png
}.each { |file| remove_file file }
-
- if recipes.include? 'rails 3.0'
- %w{
- public/images/rails.png
- }.each { |file| remove_file file }
- else
- %w{
- app/assets/images/rails.png
- }.each { |file| remove_file file }
- end
-
+
# add placeholder READMEs
get "https://raw.github.com/RailsApps/rails3-application-templates/master/files/sample_readme.txt", "README"
get "https://raw.github.com/RailsApps/rails3-application-templates/master/files/sample_readme.textile", "README.textile"
gsub_file "README", /App_Name/, "#{app_name.humanize.titleize}"
gsub_file "README.textile", /App_Name/, "#{app_name.humanize.titleize}"