Class: PEBuild::Cap::Facts::POSIX Abstract
- Defined in:
- lib/pe_build/cap/facts/posix.rb
Overview
This class is abstract.
Subclass and override Base#os_info and Base#release_info to implement for a particular POSIX system.
Base class for retrieving facts from POSIX
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#architecture ⇒ String
Returns the native architecture of the OS.
Methods inherited from Base
#basic_facts, #initialize, #load_facts, #os_info, pebuild_facts, #puppet_path, #release_info
Constructor Details
This class inherits a constructor from PEBuild::Cap::Facts::Base
Instance Method Details
#architecture ⇒ String
Returns the native architecture of the OS
This method is a concrete implementation which uses uname -m
.
16 17 18 |
# File 'lib/pe_build/cap/facts/posix.rb', line 16 def architecture sudo('uname -m')[:stdout] end |