Sha256: cb1877ed94be1517702eaa6394bb7bad34ece2519b0eb2cc5f6ea0f4400da1a3

Contents?: true

Size: 749 Bytes

Versions: 3

Compression:

Stored size: 749 Bytes

Contents

require_relative 'concept_ai_yaml_exporter'
require_relative 'concept_doc_exporter'
require_relative 'data_gift_exporter'
require_relative 'data_moodle_exporter'

# Export Output data:
# * Gift (ConceptAI, Code)
# * YAML
# * Doc (txt)
# * Moodle XML (ConceptAI, Code)
module OutputFileExporter
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asker-tool-2.4.5 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.4.4 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.4.3 lib/asker/exporter/output_file_exporter.rb