# File lib/cli.rb, line 76
  def install
    installer = Installer.new @@settings

    installer.skip_download = options["skip_download"]

    installer.server = options["server"]
    installer.ftp_user = options["ftp_user"]
    installer.ftp_password = options["ftp_password"]
    if options["root_helper"]
      installer.root_helper = options["root_helper"]
    else
      installer.root_helper = "sudo bash -c"
    end
    installer.admin_user = options["admin_user"]
    installer.admin_password = options["admin_password"]
    
    server_type = options["server_type"]

    if Installer.server_types.include? server_type
      installer.install server_type
    else
      STDERR.puts "Unsupported server type '#{server_type}."
      STDERR.puts "Supported types are: #{Installer.server_types.join(", ")}."
      exit 1
    end
  end