Method: Puppet::Provider::Command#initialize

Defined in:
lib/puppet/provider/command.rb

#initialize(name, executable, resolver, executor, options = {}) ⇒ Command

Returns a new instance of Command.

Parameters:

  • name (String)

    A way of referencing the name

  • executable (String)

    The path to the executable file

  • resolver

    An object for resolving the executable to an absolute path (usually Puppet::Util)

  • executor

    An object for performing the actual execution of the command (usually Puppet::Util::Execution)

  • options (Hash) (defaults to: {})

    Extra options to be used when executing (see Puppet::Util::Execution#execute)



13
14
15
16
17
18
19
# File 'lib/puppet/provider/command.rb', line 13

def initialize(name, executable, resolver, executor, options = {})
  @name = name
  @executable = executable
  @resolver = resolver
  @executor = executor
  @options = options
end