mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
removed unnecessary docgen code added earlier
This commit is contained in:
parent
d1a8ee1024
commit
174ec361f8
2 changed files with 2 additions and 9 deletions
|
@ -162,13 +162,6 @@ class LogStashConfigDocGenerator
|
|||
parse(File.new(File.join(File.dirname(file), "threadable.rb"), "r").read)
|
||||
end
|
||||
|
||||
if code =~ /include LogStash::PluginMixins/
|
||||
mixin = code.gsub(/.*include LogStash::PluginMixins::(\w+)\s.*/m, '\1')
|
||||
mixin.gsub!(/(.)([A-Z])/, '\1_\2')
|
||||
mixin.downcase!
|
||||
parse(File.new(File.join(File.dirname(file), "..", "plugin_mixins", "#{mixin}.rb")).read)
|
||||
end
|
||||
|
||||
parse(code)
|
||||
|
||||
puts "Generating docs for #{file}"
|
||||
|
|
|
@ -5,14 +5,14 @@ module LogStash::PluginMixins::AwsConfig
|
|||
@logger = LogStash::Logger.new(STDOUT)
|
||||
@logger.level = $DEBUG ? :debug : :warn
|
||||
|
||||
US_EAST_1 = "us-east-1"
|
||||
|
||||
# This method is called when someone includes this module
|
||||
def self.included(base)
|
||||
# Add these methods to the 'base' given.
|
||||
base.extend(self)
|
||||
end
|
||||
|
||||
US_EAST_1 = "us-east-1"
|
||||
|
||||
public
|
||||
def setup_aws_config
|
||||
# The AWS Region
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue