end
end
end
if failure_condition_met?(key)
"Implicitly set data directory path '#{dir}' is not a directory."
elsif !File.directory?(dir)
end
end
end
end
# We assume that deployment is done on a linux machine that has 'nproc'.
# Counting processors is different on other machines. For them, we would need
# to use a gem.
NPROC_PATH = `which nproc`
ARRAY = %i(yml__footer
BOOLEAN.each do |field|
end
validates field, directory: true, if: :in_production?
end
ELEMENT_PRESENT.each { |field| validates field, elements_are_present: true }
presence: true,
if: :in_production?
if: :in_production?
elements_are_email: true
validates :yml__max_read_filesize, numericality: {greater_than: 1024}
validates :yml__hets__executable_path, executable: true, if: :in_production?
elements_are_uris: true,
if: :in_production?
else
elements_are_uris: true,
if: :in_production?
end
case first_portion
when 'yml'
when 'initializers'
else
end
end
key_chain.each do |key|
if object.respond_to?(key)
object = object.send(key)
else
# The nil value shall be caught by the presence validators.
return nil
end
end
end
# Define a value for the cp_keys location.
# This must be defined in two places. Make sure this value is synchronized
# with AuthorizedKeysManager.cp_keys_executable.
end
# No-Op - the value is supposed to be hard-coded.
# The validations require the existence of a setter, though.
end
end
# We use '__' as a separator. It will be replaced by a dot.
# This uses the fact that our settings-keys never have two consecutive
# underscores.
# yml__git__verify_url maps to Settings.git.verify_url.
# initializers__git__verify_url maps to @config.git.verify_url.
if object == :error || key_chain.blank?
end
end
end
# We use '__' as a separator. It will be replaced by a dot.
# This uses the fact that our settings-keys never have two consecutive
# underscores.
# yml__git__verify_url maps to Settings.git.verify_url.
# initializers__git__verify_url maps to @config.git.verify_url.
object = self.class.base(portions[0])
if object == :error || key_chain.blank?
end
end
end