Sha256: 5168b39f453d0f420b8172fe1c411a2869063646bc6c8951d33ec08bc2ccd256

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

require "active_support/core_ext/string"

# LogFetcher Implementation requires two methods.
# - run (start log fetching asynchronously)
# - stop (stop log fetching)
module Wrapbox
  module LogFetcher
    def self.new(type, **options)
      raise "log_fetcher config needs `type`" unless type
      require "wrapbox/log_fetcher/#{type}"
      self.const_get(type.classify).new(**options)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wrapbox-0.7.0 lib/wrapbox/log_fetcher.rb
wrapbox-0.6.0 lib/wrapbox/log_fetcher.rb
wrapbox-0.5.2 lib/wrapbox/log_fetcher.rb
wrapbox-0.5.1 lib/wrapbox/log_fetcher.rb
wrapbox-0.5.0 lib/wrapbox/log_fetcher.rb