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
30
31
32
33
|
# File 'lib/native-package-installer/platform/ubuntu.rb', line 24
def current_platform?
os_release = OSRelease.new
case os_release.id
when "ubuntu"
return true
else
return true if os_release.id_like.include?("ubuntu")
end
false
end
|
Instance Method Details
#package(spec) ⇒ Object
36
37
38
|
# File 'lib/native-package-installer/platform/ubuntu.rb', line 36
def package(spec)
spec[:ubuntu] || spec[:debian]
end
|