Class: NativePackageInstaller::Platform::GentooLinux
- Inherits:
-
Object
- Object
- NativePackageInstaller::Platform::GentooLinux
- Defined in:
- lib/native-package-installer/platform/gentoo-linux.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.current_platform? ⇒ Boolean
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/native-package-installer/platform/gentoo-linux.rb', line 22 def current_platform? os_release = OSRelease.new case os_release.id when "gentoo" return true else return true if os_release.id_like.include?("gentoo") end false end |
Instance Method Details
#install_command ⇒ Object
38 39 40 |
# File 'lib/native-package-installer/platform/gentoo-linux.rb', line 38 def install_command "emerge --getbinpkg --usepkg" end |
#need_super_user_priviledge? ⇒ Boolean
42 43 44 |
# File 'lib/native-package-installer/platform/gentoo-linux.rb', line 42 def need_super_user_priviledge? true end |
#package(spec) ⇒ Object
34 35 36 |
# File 'lib/native-package-installer/platform/gentoo-linux.rb', line 34 def package(spec) spec[:gentoo_linux] end |