Class: PEBuild::Cap::DetectInstaller::Debian
- Inherits:
-
POSIX
- Object
- Base
- POSIX
- PEBuild::Cap::DetectInstaller::Debian
show all
- Defined in:
- lib/pe_build/cap/detect_installer/debian.rb
Instance Method Summary
collapse
Methods inherited from POSIX
#detect, #ext
Methods inherited from Base
detect_installer, #initialize
Instance Method Details
#arch ⇒ Object
19
20
21
22
|
# File 'lib/pe_build/cap/detect_installer/debian.rb', line 19
def arch
retval = super
(retval == 'x86_64') ? 'amd64' : retval
end
|
#name ⇒ Object
3
4
5
|
# File 'lib/pe_build/cap/detect_installer/debian.rb', line 3
def name
'debian'
end
|
#release_file ⇒ Object
7
8
9
|
# File 'lib/pe_build/cap/detect_installer/debian.rb', line 7
def release_file
'/etc/debian_version'
end
|
11
12
13
|
# File 'lib/pe_build/cap/detect_installer/debian.rb', line 11
def release_file_format
%r[^(\d+)\.]
end
|
#supported_releases ⇒ Object
15
16
17
|
# File 'lib/pe_build/cap/detect_installer/debian.rb', line 15
def supported_releases
%w[6 7 8]
end
|