Method: Puppet::Settings::FileSetting::Service#initialize

Defined in:
lib/puppet/settings/file_setting.rb

#initialize(name, fallback, settings, available_method) ⇒ Service

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.

Returns a new instance of Service.

Parameters:

  • name (Symbol)

    the name of the setting to use as the service value

  • fallback (String, nil)

    the value to use when the service value cannot be used

  • settings (Puppet::Settings)

    the puppet settings object

  • available_method (Symbol)

    the name of the method to call on settings to determine if the value in settings is available on the system



37
38
39
40
41
42
# File 'lib/puppet/settings/file_setting.rb', line 37

def initialize(name, fallback, settings, available_method)
  @settings = settings
  @available_method = available_method
  @name = name
  @fallback = fallback
end