Module: OutputFileExporter
- Defined in:
- lib/asker/exporter/output_file_exporter.rb
Overview
Export Output data files
-
YAML, Doc (txt), Gift (ConceptAI, Code) and Moodle XML (ConceptAI, Code)
Class Method Summary collapse
Class Method Details
.export(data, project) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/asker/exporter/output_file_exporter.rb', line 10 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 |