Class: NativePackageInstaller::Platform::Ubuntu
- Inherits:
-
Debian
- Object
- Debian
- NativePackageInstaller::Platform::Ubuntu
show all
- Defined in:
- lib/native-package-installer/platform/ubuntu.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Debian
#install_command, #need_super_user_priviledge?
Class Method Details
24
25
26
27
28
29
|
# File 'lib/native-package-installer/platform/ubuntu.rb', line 24
def current_platform?
return false unless File.exist?("/etc/lsb-release")
File.readlines("/etc/lsb-release").any? do |line|
line.chomp == "DISTRIB_ID=Ubuntu"
end
end
|
Instance Method Details
#package(spec) ⇒ Object
32
33
34
|
# File 'lib/native-package-installer/platform/ubuntu.rb', line 32
def package(spec)
spec[:ubuntu] || spec[:debian]
end
|