This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 88c394b
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
load_template "/Users/rbates/code/rails-templates/base.rb" | ||
|
||
name = ask("What do you want a user to be called?") | ||
generate :nifty_authentication, name | ||
rake "db:migrate" | ||
|
||
git :add => ".", :commit => "-m 'adding authentication'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
if yes?("Do you want to use RSpec for testing?") | ||
plugin "rspec", :git => "git://github.com/dchelimsky/rspec.git" | ||
plugin "rspec-rails", :git => "git://github.com/dchelimsky/rspec-rails.git" | ||
generate :rspec | ||
end | ||
|
||
generate :nifty_layout | ||
|
||
git :init | ||
|
||
run "echo 'TODO add readme content' > README" | ||
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | ||
run "cp config/database.yml config/example_database.yml" | ||
|
||
file ".gitignore", <<-END | ||
log/*.log | ||
tmp/**/* | ||
config/database.yml | ||
db/*.sqlite3 | ||
END | ||
|
||
git :add => ".", :commit => "-m 'initial commit'" |