Class: U3d::Installer
- Inherits:
-
Object
- Object
- U3d::Installer
- Defined in:
- lib/u3d/installer.rb
Class Method Summary collapse
- .create ⇒ Object
- .install_modules(files, version, installation_path: nil) ⇒ Object
- .sanitize_installs(installer) ⇒ Object
- .uninstall(unity: nil) ⇒ Object
Class Method Details
.create ⇒ Object
42 43 44 45 46 47 48 49 50 |
# 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) ⇒ Object
56 57 58 59 60 61 62 63 |
# 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. 'Installing with ' + file installer.install(file, version, installation_path: installation_path, info: info) end end |
.sanitize_installs(installer) ⇒ Object
52 53 54 |
# File 'lib/u3d/installer.rb', line 52 def self.sanitize_installs(installer) installer.sanitize_installs end |