methods/ai_server.rb
# Check ZFS filesystem or mount point exists for repo version directory
Check ZFS filesystem or mount point exists for repo version directory
Check ZFS filesystem or mount point exists for repo version directory
def check_ai_repo_dir(options)
  dir_list  = options['repodir'].split(/\//)
  check_dir = ""
  dir_list.each do |dir_name|
    check_dir = check_dir+"/"+dir_name
    check_dir = check_dir.gsub(/\/\//,"/")
    if dir_name.match(/[a-z,A-Z,0-9]/)
      check_fs_exists(options,check_dir)
    end
  end
  return
end
def check_ai_repo_dir ( options ) dir_list = options [ 'repodir' ] . split ( / \/ / ) check_dir = "" dir_list . each do | dir_name | check_dir = check_dir + "/" + dir_name check_dir = check_dir . gsub ( / \/ \/ / , "/" ) if dir_name . match ( / [a-z,A-Z,0-9] / ) check_fs_exists ( options , check_dir ) end end return end
Check ZFS filesystem or mount point exists for repo version directory
Check ZFS filesystem or mount point exists for repo version directory
options
<not_specific>