summaryrefslogtreecommitdiff
path: root/bin/setup
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-20 19:53:14 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-20 19:53:14 -0600
commit9aa71bb4bfa345da9514bf6bb251985af0b8758e (patch)
treef980e6f7a9d8f311cf5edd6239775e5ff3a4c5b6 /bin/setup
parenta4d29f635c7c6bec4a15ab43956a2be896b0ff11 (diff)
AƱadidos safe autocorrects de rubocop
Diffstat (limited to 'bin/setup')
-rwxr-xr-xbin/setup16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/setup b/bin/setup
index ec47b79..d6e019a 100755
--- a/bin/setup
+++ b/bin/setup
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
-require "fileutils"
+require 'fileutils'
# path to your application root.
-APP_ROOT = File.expand_path("..", __dir__)
+APP_ROOT = File.expand_path('..', __dir__)
def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
@@ -13,9 +13,9 @@ FileUtils.chdir APP_ROOT do
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
# Add necessary setup steps to this file.
- puts "== Installing dependencies =="
- system! "gem install bundler --conservative"
- system("bundle check") || system!("bundle install")
+ puts '== Installing dependencies =='
+ system! 'gem install bundler --conservative'
+ system('bundle check') || system!('bundle install')
# puts "\n== Copying sample files =="
# unless File.exist?("config/database.yml")
@@ -23,11 +23,11 @@ FileUtils.chdir APP_ROOT do
# end
puts "\n== Preparing database =="
- system! "bin/rails db:prepare"
+ system! 'bin/rails db:prepare'
puts "\n== Removing old logs and tempfiles =="
- system! "bin/rails log:clear tmp:clear"
+ system! 'bin/rails log:clear tmp:clear'
puts "\n== Restarting application server =="
- system! "bin/rails restart"
+ system! 'bin/rails restart'
end