class NativePackageInstaller::Platform::Fedora
Public Class Methods
current_platform?()
click to toggle source
# File lib/native-package-installer/platform/fedora.rb, line 22 def current_platform? File.exist?("/etc/fedora-release") end
Public Instance Methods
install_command()
click to toggle source
# File lib/native-package-installer/platform/fedora.rb, line 31 def install_command "dnf install -y" end
need_super_user_priviledge?()
click to toggle source
# File lib/native-package-installer/platform/fedora.rb, line 35 def need_super_user_priviledge? true end
package(spec)
click to toggle source
# File lib/native-package-installer/platform/fedora.rb, line 27 def package(spec) spec[:fedora] || spec[:rehat] end