Class: LogStash::Setting::DeprecatedAndRenamed

Inherits:
DeprecatedSetting show all
Defined in:
lib/logstash/settings.rb

Overview

Useful when a setting has been renamed but otherwise is semantically identical

Instance Attribute Summary collapse

Attributes inherited from LogStash::Setting

#default, #name

Instance Method Summary collapse

Methods inherited from DeprecatedSetting

#set

Methods inherited from LogStash::Setting

#==, #reset, #set, #set?, #strict?, #to_hash, #validate_value, #value

Constructor Details

#initialize(name, new_name) ⇒ DeprecatedAndRenamed

Returns a new instance of DeprecatedAndRenamed.



650
651
652
653
# File 'lib/logstash/settings.rb', line 650

def initialize(name, new_name)
  super(name, "please update your configuration to use `#{new_name}` instead.")
  @new_name = new_name
end

Instance Attribute Details

#new_nameObject (readonly)

Returns the value of attribute new_name.



649
650
651
# File 'lib/logstash/settings.rb', line 649

def new_name
  @new_name
end