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
44 45 46 47 48 49 50 51 52 |
# File 'lib/u3d/installer.rb', line 44 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
58 59 60 61 62 63 64 65 |
# File 'lib/u3d/installer.rb', line 58 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
54 55 56 |
# File 'lib/u3d/installer.rb', line 54 def self.sanitize_installs(installer) installer.sanitize_installs end |
.uninstall(unity: nil) ⇒ Object
67 68 69 70 |
# File 'lib/u3d/installer.rb', line 67 def self.uninstall(unity: nil) installer = Installer.create installer.uninstall(unity: unity) end |