Merge branch 'master' into 2244-sdk-docs
[arvados.git] / services / api / lib / tasks / config_check.rake
index b74e03d90793bda7063115ab8e2a1c79ab0e4f1a..ec1ae7bdc478a08cc172eca7c30ffd7eecda1cba 100644 (file)
@@ -2,10 +2,17 @@ namespace :config do
   desc 'Ensure site configuration has all required settings'
   task check: :environment do
     $application_config.sort.each do |k, v|
-      if /(password|secret)/.match(k) then
-        $stderr.puts "%-32s %s" % [k, '*********']
+      if ENV.has_key?('QUIET') then
+        # Make sure we still check for the variable to exist
+        eval("Rails.configuration.#{k}")
       else
-        $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")]
+        if /(password|secret)/.match(k) then
+          # Make sure we still check for the variable to exist, but don't print the value
+          eval("Rails.configuration.#{k}")
+          $stderr.puts "%-32s %s" % [k, '*********']
+        else
+          $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")]
+        end
       end
     end
   end