Method: Puppet::Provider::CommandDefiner#command

Defined in:
lib/puppet/provider.rb

#commandObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



254
255
256
257
258
259
260
# File 'lib/puppet/provider.rb', line 254

def command
  if not @optional
    @confiner.confine :exists => @path, :for_binary => true
  end

  Puppet::Provider::Command.new(@name, @path, Puppet::Util, Puppet::Util::Execution, { :failonfail => true, :combine => true, :custom_environment => @custom_environment })
end