Module: Threatinator::Actions::Run::OutputConfigMethods
- Defined in:
- lib/threatinator/actions/run/output_config.rb
Instance Method Summary collapse
Instance Method Details
#build_output ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/threatinator/actions/run/output_config.rb', line 30 def build_output oc = self.class.get_plugin(self.format) if oc.nil? raise Threatinator::Exceptions::UnknownPlugin.new("Unknown output plugin: '#{format}'") end output_config = self[format] if output_config.nil? raise Threatinator::Exceptions::CouldNotFindOutputConfigError.new("Could not find output config for '#{format}'. Perhaps there's some load-order issues?") end oc.new(output_config) end |