Sha256: 81882acb2d27a8bea43d75e92218fa428f36f742f0482f73284842a740fa40d7

Contents?: true

Size: 746 Bytes

Versions: 4

Compression:

Stored size: 746 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 files
# * YAML, Doc (txt), Gift (ConceptAI, Code) and 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.call(data, project) if config["output"]["moodle"] == "yes"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asker-tool-2.8.0 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.7.2 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.7.1 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.7.0 lib/asker/exporter/output_file_exporter.rb