aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks/log.rake
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:15:47 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:15:47 +0200
commit69ab3eb57e8387b0dd9d672b5e8d9185395baa03 (patch)
treea49845496e36ba7659a863e6550fcccbb9317d7d /railties/lib/rails/tasks/log.rake
parentf8477f13bfe554064bd25a57e5289b4ebaabb504 (diff)
downloadrails-69ab3eb57e8387b0dd9d672b5e8d9185395baa03.tar.gz
rails-69ab3eb57e8387b0dd9d672b5e8d9185395baa03.tar.bz2
rails-69ab3eb57e8387b0dd9d672b5e8d9185395baa03.zip
applies new string literal convention in railties/lib
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
Diffstat (limited to 'railties/lib/rails/tasks/log.rake')
-rw-r--r--railties/lib/rails/tasks/log.rake8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/tasks/log.rake b/railties/lib/rails/tasks/log.rake
index 073f235ec5..31acbdcb84 100644
--- a/railties/lib/rails/tasks/log.rake
+++ b/railties/lib/rails/tasks/log.rake
@@ -14,17 +14,17 @@ namespace :log do
end
def log_files
- if ENV['LOGS'] == 'all'
+ if ENV["LOGS"] == "all"
FileList["log/*.log"]
- elsif ENV['LOGS']
- log_files_to_truncate(ENV['LOGS'])
+ elsif ENV["LOGS"]
+ log_files_to_truncate(ENV["LOGS"])
else
log_files_to_truncate("development,test,production")
end
end
def log_files_to_truncate(envs)
- envs.split(',')
+ envs.split(",")
.map { |file| "log/#{file.strip}.log" }
.select { |file| File.exist?(file) }
end