Module: OutputFileExporter
- Defined in:
- lib/asker/exporter/output_file_exporter.rb
Overview
Export Output data:
-
Gift (ConceptAI, Code)
-
YAML
-
Doc (txt)
-
Moodle XML (ConceptAI, Code)
Class Method Summary collapse
Class Method Details
.export(data, project) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/asker/exporter/output_file_exporter.rb', line 12 def self.export(data, project) config = Application.instance.config ConceptAIYAMLExporter.export_all(data[:concepts_ai], project) if config['output']['yaml'] == 'yes' ConceptDocExporter.export_all(data[:concepts], project) if config['output']['doc'] == 'yes' DataGiftExporter.export_all(data, project) if config['output']['gift'] == 'yes' DataMoodleExporter.export_all(data, project) if config['output']['moodle'] == 'yes' end |