diff options
author | Xavier Noria <fxn@hashref.com> | 2014-12-20 00:51:30 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-12-20 00:51:30 +0100 |
commit | 83bbc2352c73beba655d9c1d58a3244782209bc5 (patch) | |
tree | 674d9de574cdeca08877587af917c86125b722dd /railties | |
parent | 0cd5ddbbe18f49838fe7066d29c04e96d2a16f0a (diff) | |
download | rails-83bbc2352c73beba655d9c1d58a3244782209bc5.tar.gz rails-83bbc2352c73beba655d9c1d58a3244782209bc5.tar.bz2 rails-83bbc2352c73beba655d9c1d58a3244782209bc5.zip |
prefer single quotes, by the beard of the prophet!
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/setup | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/setup b/railties/lib/rails/generators/rails/app/templates/bin/setup index ac500caffe..d5ed4f2e56 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/setup +++ b/railties/lib/rails/generators/rails/app/templates/bin/setup @@ -7,24 +7,24 @@ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) chdir APP_ROOT do # This script is a starting point to setup your application. - # Add necessary setup steps to this file: + # Add necessary setup steps to this file. - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system("bundle check") or system("bundle install") + puts '== Installing dependencies ==' + system 'gem install bundler --conservative' + system('bundle check') or system('bundle install') # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # cp "config/database.yml.sample", "config/database.yml" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' # end puts "\n== Preparing database ==" - system "ruby bin/rake db:setup" + system 'ruby bin/rake db:setup' puts "\n== Removing old logs and tempfiles ==" - rm_f Dir.glob("log/*") - rm_rf "tmp/cache" + rm_f Dir.glob('log/*') + rm_rf 'tmp/cache' puts "\n== Restarting application server ==" - touch "tmp/restart.txt" + touch 'tmp/restart.txt' end |