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