class U3d::Installer

Public Class Methods

create() click to toggle source
# File lib/u3d/installer.rb, line 42
def self.create
  if Helper.mac?
    MacInstaller.new
  elsif Helper.linux?
    LinuxInstaller.new
  else
    WindowsInstaller.new
  end
end
install_modules(files, version, installation_path: nil) click to toggle source
# File lib/u3d/installer.rb, line 56
def self.install_modules(files, version, installation_path: nil)
  installer = Installer.create
  files.each do |name, file, info|
    UI.header "Installing #{info.name} (#{name})"
    UI.message 'Installing with ' + file
    installer.install(file, version, installation_path: installation_path, info: info)
  end
end
sanitize_installs(installer) click to toggle source
# File lib/u3d/installer.rb, line 52
def self.sanitize_installs(installer)
  installer.sanitize_installs
end
uninstall(unity: nil) click to toggle source
# File lib/u3d/installer.rb, line 65
def self.uninstall(unity: nil)
  installer = Installer.create
  installer.uninstall(unity: unity)
end