diff --git a/lib/templates/core.rb b/lib/templates/core.rb index cb0e43a..2dafcab 100644 --- a/lib/templates/core.rb +++ b/lib/templates/core.rb @@ -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 -

Welcome to Nozomi

-

Your app is now ready to customise

-

Here's exactly what Nozomi did to create this project:

-
-    #{`git log`}
-    
- HTML end nozomi "Add example database.yml" do diff --git a/lib/templates/readme.rb b/lib/templates/readme.rb new file mode 100644 index 0000000..a8f4fc3 --- /dev/null +++ b/lib/templates/readme.rb @@ -0,0 +1,21 @@ +nozomi "Instructions" do + + create_file "public/index.html", <<-HTML +

Welcome to Nozomi

+

Your app is now ready to customise

+

Here's exactly what Nozomi did to create this project:

+
+    #{`git log`}
+    
+ 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 \ No newline at end of file diff --git a/lib/templates/standard.rb b/lib/templates/standard.rb index a20d6bf..57630bf 100644 --- a/lib/templates/standard.rb +++ b/lib/templates/standard.rb @@ -9,3 +9,5 @@ apply template('formtastic') apply template('devise') + +apply template('readme') \ No newline at end of file