methods/xb_server.rb
# Copy Linux ISO contents to repo
Copy Linux ISO contents to repo
Copy Linux ISO contents to repo
def configure_xb_repo(options)
  check_fs_exists(options,options['repodir'])
  case options['service'].to_s
  when /openbsd|freebsd/
    check_dir = options['repodir'].to_s+"/etc"
  when /coreos/
    check_dir = options['repodir'].to_s+"/coreos"
  end
  if options['verbose'] == true
    handle_output(options,"Checking:\tDirectory #{check_dir} exits")
  end
  if !File.directory?(check_dir)
    mount_iso(options)
    copy_iso(options)
    umount_iso(options)
  end
  return
end
def configure_xb_repo ( options ) check_fs_exists ( options , options [ 'repodir' ] ) case options [ 'service' ] . to_s when / openbsd|freebsd / check_dir = options [ 'repodir' ] . to_s + "/etc" when / coreos / check_dir = options [ 'repodir' ] . to_s + "/coreos" end if options [ 'verbose' ] == true handle_output ( options , "Checking:\tDirectory #{check_dir} exits" ) end if ! File . directory? ( check_dir ) mount_iso ( options ) copy_iso ( options ) umount_iso ( options ) end return end
Copy Linux ISO contents to repo
Copy Linux ISO contents to repo
options
<not_specific>