Sha256: 01af6914a92772f237eedcaba2c7c8471e9414ae916db7976cd8304407613f18
Contents?: true
Size: 764 Bytes
Versions: 1
Compression:
Stored size: 764 Bytes
Contents
require_relative 'base' # Base class for retrieving facts from POSIX # # @abstract Subclass and override {#os_info} and {#release_info} to implement # for a particular POSIX system. # # @since 0.13.0 class PEBuild::Cap::Facts::POSIX < PEBuild::Cap::Facts::Base # (see PEBuild::Cap::Facts::Base#architecture) # # This method is a concrete implementation which uses `uname -m`. # # @see PEBuild::Cap::Facts::Base#architecture def architecture sudo('uname -m')[:stdout] end private def find_facter paths = %w[ /opt/puppetlabs/bin/puppet /opt/puppet/bin/puppet /usr/local/bin/puppet ] paths.each do |path| return path if @machine.communicate.test("#{path} --version") end return nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-pe_build-0.13.0 | lib/pe_build/cap/facts/posix.rb |