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.

Parameters:

  • command_specs (Hash{String => String})

    Map of name to command that the provider will be executing on the system. Each command is specified with a name and the path of the executable.

See Also:



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