class U3d::LinuxDependencies
Constants
Public Class Methods
install()
click to toggle source
# File lib/u3d/installer.rb, line 566 def self.install if `which dpkg` != '' prefix = 'apt-get -y install' elsif `which rpm` != '' prefix = 'yum -y install' else raise 'Cannot install dependencies on your Linux distribution' end if UI.interactive? return unless UI.confirm "Install dependencies? (#{DEPENDENCIES.length} dependency(ies) to install)" end U3dCore::CommandExecutor.execute(command: "#{prefix} #{DEPENDENCIES.join(' ')}", admin: true) end