add local cache repository for speed purpose (subversion) or for browsing a external repository
for SCM that can handle only local copy (git). git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1899 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -161,4 +161,14 @@ private
|
||||
setting = find_by_name(name)
|
||||
setting ||= new(:name => name, :value => @@available_settings[name]['default']) if @@available_settings.has_key? name
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def validate
|
||||
if self.name.to_s == "repositories_cache_directory" and not File.directory?(self.value.to_s)
|
||||
logger.error("Le repertoire #{self.value.to_s} n'existe pas")
|
||||
errors.add("Le repertoire #{self.value.to_s} n'existe pas")
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user