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:

  • A way of referencing the name

  • The path to the executable file

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

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

  • (defaults to: {})

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

API:

  • public



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