diff options
author | shumakl <shumakl@purdue.edu> | 2014-04-03 11:51:37 -0400 |
---|---|---|
committer | shumakl <shumakl@purdue.edu> | 2014-04-03 11:51:37 -0400 |
commit | bed5a14c1e8bd4af7a066664f0ec2b57979bc96b (patch) | |
tree | 17271699ef186edcfa80df38afefd4540798a3a6 /generate.sh | |
parent | ef22599880973aae8464bacb82e3a04d6277bc43 (diff) |
modify generate.sh to use tab-indent in the app/ directory
Diffstat (limited to 'generate.sh')
-rwxr-xr-x | generate.sh | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/generate.sh b/generate.sh index d960a56..728e122 100755 --- a/generate.sh +++ b/generate.sh @@ -1,17 +1,13 @@ #!/bin/bash -set -x -# The generate.sh bash file is used to generate all of the necessary .rb files to run the website -# +# The generate.sh bash file is used to generate all of the necessary +# .rb files to run the website +set -x -# To Start Rails Server: -# bundle exec rails server -# -# To Clear the Generated Files: -# git clean -df -# -#NOTEST='--skip-test-unit' +# figure out where we are running from +srcdir=$(dirname "$(readlink -f "$0")") +cd "$srcdir" git rm -rf app test config/routes.rb db/migrate git checkout clean-start -- app test config/routes.rb @@ -65,4 +61,6 @@ bundle exec rake db:drop RAILS_ENV=development bundle exec rake db:migrate RAILS_ENV=development bundle exec rake db:seed +find app -type f -name '*.rb' -exec bin/autoindent {} \; + git add app test config/routes.rb db/migrate db/schema.rb |