class Threatinator::CLI::ActionBuilder
Attributes
config_hash[R]
extra_args[R]
Public Class Methods
new(config_hash, extra_args)
click to toggle source
# File lib/threatinator/cli/action_builder.rb, line 9 def initialize(config_hash, extra_args) @extra_args = extra_args @config_hash = config_hash @feed_registry = nil end
Public Instance Methods
build()
click to toggle source
# File lib/threatinator/cli/action_builder.rb, line 15 def build #:nocov: raise NotImplementedError.new("#{self.class}#build not implemented") #:nocov: end
feed_registry()
click to toggle source
# File lib/threatinator/cli/action_builder.rb, line 21 def feed_registry return @feed_registry unless @feed_registry.nil? feed_search_hash = config_hash["feed_search"] || {} feed_search_config = Threatinator::Config::FeedSearch.new(feed_search_hash) @feed_registry = Threatinator::FeedRegistry.build(feed_search_config) end