Skip to content

Commit

Permalink
Move readme to end so git log has all tasks in it
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Price committed Sep 6, 2012
1 parent a44f5ac commit e5b86f7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
10 changes: 1 addition & 9 deletions lib/templates/core.rb
Expand Up @@ -41,16 +41,8 @@ def bundle_install(options={})
bundle_install :force => true
end

nozomi "Replace landing page and images" do
nozomi "Remove landing page and images" do
git :rm => 'public/index.html public/favicon.ico app/assets/images/rails.png'
create_file "public/index.html", <<-HTML
<h1>Welcome to Nozomi</h1>
<p>Your app is now ready to customise</p>
<p>Here's exactly what Nozomi did to create this project:</p>
<pre>
#{`git log`}
</pre>
HTML
end

nozomi "Add example database.yml" do
Expand Down
21 changes: 21 additions & 0 deletions lib/templates/readme.rb
@@ -0,0 +1,21 @@
nozomi "Instructions" do

create_file "public/index.html", <<-HTML
<h1>Welcome to Nozomi</h1>
<p>Your app is now ready to customise</p>
<p>Here's exactly what Nozomi did to create this project:</p>
<pre>
#{`git log`}
</pre>
HTML

log :enjoy!, <<-MSG
Nozomi Rails template complete! Your next steps are:
1. Edit config/database.yml to match your database config
2. rake db:create:all (to create all databases)
3. rake db:migrate (to create a db/schema.rb)
4. Start building your app!
MSG

end
2 changes: 2 additions & 0 deletions lib/templates/standard.rb
Expand Up @@ -9,3 +9,5 @@

apply template('formtastic')
apply template('devise')

apply template('readme')

0 comments on commit e5b86f7

Please sign in to comment.