Class: Harbinger::Exporters::BaseExporter
- Inherits:
-
Object
- Object
- Harbinger::Exporters::BaseExporter
- Defined in:
- lib/harbinger/exporters/base_exporter.rb
Overview
Base class for exporters that transform project data into various formats
Direct Known Subclasses
Constant Summary collapse
- COMPONENTS =
%w[ruby rails postgres mysql redis mongo python nodejs rust].freeze
- PRODUCT_NAMES =
{ "ruby" => "ruby", "rails" => "rails", "postgres" => "postgresql", "mysql" => "mysql", "redis" => "redis", "mongo" => "mongodb", "python" => "python", "nodejs" => "nodejs", "rust" => "rust" }.freeze
Instance Method Summary collapse
- #export ⇒ Object
-
#initialize(projects, fetcher: nil) ⇒ BaseExporter
constructor
A new instance of BaseExporter.
Constructor Details
#initialize(projects, fetcher: nil) ⇒ BaseExporter
Returns a new instance of BaseExporter.
23 24 25 26 |
# File 'lib/harbinger/exporters/base_exporter.rb', line 23 def initialize(projects, fetcher: nil) @projects = projects @fetcher = fetcher || EolFetcher.new end |
Instance Method Details
#export ⇒ Object
28 29 30 |
# File 'lib/harbinger/exporters/base_exporter.rb', line 28 def export raise NotImplementedError, "Subclasses must implement #export" end |