removed unnecessary docgen code added earlier

This commit is contained in:
Louis Zuckerman 2013-01-06 12:13:05 -05:00
parent d1a8ee1024
commit 174ec361f8
2 changed files with 2 additions and 9 deletions

View file

@ -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}"

View 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