Method: Puppet::Provider.commands
- Defined in:
- lib/puppet/provider.rb
.commands(command_specs) ⇒ void
Note:
It is preferred if the commands are not entered with absolute paths as this allows puppet to search for them using the PATH variable.
This method returns an undefined value.
Confines this provider to be suitable only on hosts where the given commands are present. Also see Confiner#confine for other types of confinement of a provider by use of other types of predicates.
153 154 155 156 157 |
# File 'lib/puppet/provider.rb', line 153 def self.commands(command_specs) command_specs.each do |name, path| has_command(name, path) end end |