Class: Puppet::Provider::Confine::Feature
- Inherits:
-
Puppet::Provider::Confine
- Object
- Puppet::Provider::Confine
- Puppet::Provider::Confine::Feature
- Defined in:
- lib/vendor/puppet/provider/confine/feature.rb
Constant Summary
Constants included from Util
Util::AbsolutePathPosix, Util::AbsolutePathWindows
Instance Attribute Summary
Attributes inherited from Puppet::Provider::Confine
Class Method Summary collapse
Instance Method Summary collapse
- #message(value) ⇒ Object
-
#pass?(value) ⇒ Boolean
Is the named feature available?.
Methods inherited from Puppet::Provider::Confine
#for_binary?, inherited, #initialize, #reset, #result, test, #valid?
Methods included from Util
absolute_path?, activerecord_version, benchmark, binread, chuser, classproxy, #execfail, #execpipe, execute, execute_posix, execute_windows, logmethods, memory, path_to_uri, proxy, replace_file, safe_posix_fork, symbolize, symbolizehash, symbolizehash!, synchronize_on, thinmark, #threadlock, uri_to_path, wait_for_output, which, withumask
Methods included from Util::POSIX
#get_posix_field, #gid, #idfield, #methodbyid, #methodbyname, #search_posix_field, #uid
Constructor Details
This class inherits a constructor from Puppet::Provider::Confine
Class Method Details
.summarize(confines) ⇒ Object
4 5 6 |
# File 'lib/vendor/puppet/provider/confine/feature.rb', line 4 def self.summarize(confines) confines.collect { |c| c.values }.flatten.uniq.find_all { |value| ! confines[0].pass?(value) } end |
Instance Method Details
#message(value) ⇒ Object
13 14 15 |
# File 'lib/vendor/puppet/provider/confine/feature.rb', line 13 def (value) "feature #{value} is missing" end |