Class: PEBuild::Cap::DetectInstaller::Solaris

Inherits:
POSIX
  • Object
show all
Defined in:
lib/pe_build/cap/detect_installer/solaris.rb

Instance Method Summary collapse

Methods inherited from POSIX

#detect, #ext

Methods inherited from Base

detect_installer, #initialize

Constructor Details

This class inherits a constructor from PEBuild::Cap::DetectInstaller::Base

Instance Method Details

#archObject



19
20
21
22
# File 'lib/pe_build/cap/detect_installer/solaris.rb', line 19

def arch
  retval = super
  (retval == 'i86pc') ? 'i386' : retval
end

#nameObject



3
4
5
# File 'lib/pe_build/cap/detect_installer/solaris.rb', line 3

def name
  'solaris'
end

#release_fileObject



7
8
9
# File 'lib/pe_build/cap/detect_installer/solaris.rb', line 7

def release_file
  '/etc/release'
end

#release_file_formatObject



11
12
13
# File 'lib/pe_build/cap/detect_installer/solaris.rb', line 11

def release_file_format
  %r[^(?:\s)*(?:Oracle )?Solaris (\d+)]
end

#supported_releasesObject



15
16
17
# File 'lib/pe_build/cap/detect_installer/solaris.rb', line 15

def supported_releases
  %w[10 11]
end