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.



608
609
610
611
# File 'lib/logstash/settings.rb', line 608

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.



607
608
609
# File 'lib/logstash/settings.rb', line 607

def new_name
  @new_name
end