Module: Wrapbox::LogFetcher
- Defined in:
- lib/wrapbox/log_fetcher.rb,
lib/wrapbox/log_fetcher/awslogs.rb,
lib/wrapbox/log_fetcher/papertrail.rb
Defined Under Namespace
Classes: Awslogs, Papertrail
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.new(type, **options) ⇒ Object
8
9
10
11
12
13
|
# File 'lib/wrapbox/log_fetcher.rb', line 8
def self.new(type, **options)
raise "log_fetcher config needs `type`" unless type
require "wrapbox/log_fetcher/#{type}"
options = options.reject { |k, v| k == :type }
self.const_get(type.camelize).new(**options)
end
|
Instance Method Details
#run(task:) ⇒ Object
15
16
17
|
# File 'lib/wrapbox/log_fetcher.rb', line 15
def run(task:)
raise NotImplementedError
end
|
#stop ⇒ Object
19
20
21
|
# File 'lib/wrapbox/log_fetcher.rb', line 19
def stop
raise NotImplementedError
end
|