Class: SolidAgent::AgentManifest::Exporters::BaseExporter
- Inherits:
-
Object
- Object
- SolidAgent::AgentManifest::Exporters::BaseExporter
- Defined in:
- lib/solid_agent/agent_manifest/exporters/base_exporter.rb
Overview
BaseExporter provides common functionality for all format exporters.
Subclasses should implement:
- .export(manifest, **options) - Convert manifest to string
- .format_name - Return the format identifier symbol
Direct Known Subclasses
Class Method Summary collapse
-
.export(manifest, **options) ⇒ String
Export a manifest to string format.
-
.format_name ⇒ Symbol
Get the format name for this exporter.
Class Method Details
.export(manifest, **options) ⇒ String
Export a manifest to string format
19 20 21 |
# File 'lib/solid_agent/agent_manifest/exporters/base_exporter.rb', line 19 def export(manifest, **) raise NotImplementedError, "#{self}.export must be implemented by subclass" end |
.format_name ⇒ Symbol
Get the format name for this exporter
26 27 28 |
# File 'lib/solid_agent/agent_manifest/exporters/base_exporter.rb', line 26 def format_name raise NotImplementedError, "#{self}.format_name must be implemented by subclass" end |