Sha256: 38e49aaa3fa68022200648e611b0bcd9fd17adffec9494be75a1310f3b740578

Contents?: true

Size: 751 Bytes

Versions: 11

Compression:

Stored size: 751 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.export_all(data, project) if config['output']['moodle'] == 'yes'
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
asker-tool-2.6.0 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.9 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.8 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.7 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.6 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.5 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.4 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.3 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.2 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.1 lib/asker/exporter/output_file_exporter.rb
asker-tool-2.5.0 lib/asker/exporter/output_file_exporter.rb