Class Puppet::Util::Feature
In: lib/puppet/util/feature.rb
Parent: Object

Created by Luke Kanies on 2006-11-07. Copyright (c) 2006. All rights reserved.

Methods

add   load   method_missing   new   test  

Attributes

path  [R] 

Public Class methods

Create a new feature collection.

Public Instance methods

Create a new feature test. You have to pass the feature name, and it must be unique. You can either provide a block that will get executed immediately to determine if the feature is present, or you can pass an option to determine it. Currently, the only supported option is ‘libs’ (must be passed as a symbol), which will make sure that each lib loads successfully.

Actually test whether the feature is present. We only want to test when someone asks for the feature, so we don‘t unnecessarily load files.

[Validate]