1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 desc 'Ensure site configuration has all required settings'
7 task check: :environment do
8 $application_config.sort.each do |k, v|
9 if ENV.has_key?('QUIET') then
10 # Make sure we still check for the variable to exist
11 eval("Rails.configuration.#{k}")
13 if /(password|secret)/.match(k) then
14 # Make sure we still check for the variable to exist, but don't print the value
15 eval("Rails.configuration.#{k}")
16 $stderr.puts "%-32s %s" % [k, '*********']
18 $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")]