Module: LogStash::Outputs::ElasticSearch::Shield::ClassMethods
- Defined in:
- lib/logstash/outputs/elasticsearch/shield.rb
Instance Method Summary collapse
Instance Method Details
#branch_auth_setup ⇒ Object
32 33 34 35 36 37 |
# File 'lib/logstash/outputs/elasticsearch/shield.rb', line 32 def branch_auth_setup alias_method :setup_http_auth, :setup_basic_auth define_method(:setup_basic_auth) do @protocol =~ /http/ ? setup_http_auth : _setup_nothing end end |
#branch_ssl_setup ⇒ Object
25 26 27 28 29 30 |
# File 'lib/logstash/outputs/elasticsearch/shield.rb', line 25 def branch_ssl_setup alias_method :setup_http_ssl, :setup_ssl define_method(:setup_ssl) do @protocol =~ /http/ ? setup_http_ssl : _setup_transport_ssl end end |
#create_options ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/logstash/outputs/elasticsearch/shield.rb', line 15 def # Use the specified JKS keystore config :keystore, :validate => :path # Set the keystore password config :keystore_password, :validate => :password end |