Class Facter::Util::Resolution
In: lib/facter/util/resolution.rb
Parent: Object

Methods

confine   exec   has_weight   have_which   interpreter   interpreter=   limit   new   setcode   suitable?   to_s   value   weight  

Constants

INTERPRETER = Facter::Util::Config.is_windows? ? "cmd.exe" : "/bin/sh"

Attributes

code  [RW] 
interpreter  [RW] 
name  [RW] 
timeout  [RW] 

Public Class methods

Execute a program and return the output of that program.

Returns nil if the program can‘t be found, or if there is a problem executing the code.

Create a new resolution mechanism.

Public Instance methods

Add a new confine to the resolution mechanism.

We need this as a getter for ‘timeout’, because some versions of ruby seem to already have a ‘timeout’ method and we can‘t seem to override the instance methods, somehow.

Is this resolution mechanism suitable on the system in question?

How we get a value for our resolution mechanism.

Return the importance of this resolution.

[Validate]