Class: Puppet::Confine::Feature
- Inherits:
-
Puppet::Confine
- Object
- Puppet::Confine
- Puppet::Confine::Feature
- Defined in:
- lib/puppet/confine/feature.rb
Constant Summary
Constants included from Util
Util::ALNUM, Util::ALPHA, Util::AbsolutePathPosix, Util::AbsolutePathWindows, Util::DEFAULT_POSIX_MODE, Util::DEFAULT_WINDOWS_MODE, Util::ESCAPED, Util::HEX, Util::HttpProxy, Util::PUPPET_STACK_INSERTION_FRAME, Util::RESERVED, Util::RFC_3986_URI_REGEX, Util::UNRESERVED, Util::UNSAFE
Constants included from Util::POSIX
Util::POSIX::LOCALE_ENV_VARS, Util::POSIX::USER_ENV_VARS
Constants included from Util::SymbolicFileMode
Util::SymbolicFileMode::SetGIDBit, Util::SymbolicFileMode::SetUIDBit, Util::SymbolicFileMode::StickyBit, Util::SymbolicFileMode::SymbolicMode, Util::SymbolicFileMode::SymbolicSpecialToBit
Instance Attribute Summary
Attributes inherited from Puppet::Confine
Class Method Summary collapse
Instance Method Summary collapse
- #message(value) ⇒ Object
-
#pass?(value) ⇒ Boolean
Is the named feature available?.
Methods inherited from Puppet::Confine
#for_binary?, inherited, #initialize, #reset, #result, test, #valid?
Methods included from Util
absolute_path?, benchmark, chuser, clear_environment, create_erb, default_env, deterministic_rand, deterministic_rand_int, exit_on_fail, format_backtrace_array, format_puppetstack_frame, get_env, get_environment, logmethods, merge_environment, path_to_uri, pretty_backtrace, replace_file, resolve_stackframe, rfc2396_escape, safe_posix_fork, set_env, skip_external_facts, symbolizehash, thinmark, uri_encode, uri_query_encode, uri_to_path, uri_unescape, which, withenv, withumask
Methods included from Util::POSIX
#get_posix_field, #gid, groups_of, #idfield, #methodbyid, #methodbyname, #search_posix_field, #uid
Methods included from Util::SymbolicFileMode
#display_mode, #normalize_symbolic_mode, #symbolic_mode_to_int, #valid_symbolic_mode?
Constructor Details
This class inherits a constructor from Puppet::Confine
Class Method Details
.summarize(confines) ⇒ Object
6 7 8 |
# File 'lib/puppet/confine/feature.rb', line 6 def self.summarize(confines) confines.collect(&:values).flatten.uniq.find_all { |value| !confines[0].pass?(value) } end |
Instance Method Details
#message(value) ⇒ Object
15 16 17 |
# File 'lib/puppet/confine/feature.rb', line 15 def (value) "feature #{value} is missing" end |