Sha256: dff477f5c80229e745bc3f56c831b78264b7c527f63494f08df3a31a34000cb3

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 Bytes

Contents

require_relative "export2doc"
require_relative "export2gift"
require_relative "export2moodle_xml"
require_relative "export2yaml"

##
# Export Output data files
# * YAML, Doc (txt), Gift (ConceptAI, Code) and Moodle XML (ConceptAI, Code)
class ExportAction
  def call(data, project)
    output = Application.instance.config["output"]

    Export2Doc.new.call(data, project) if output["doc"] == "yes"
    Export2Gift.new.call(data, project) if output["gift"] == "yes"
    Export2MoodleXML.new.call(data, project) if output["moodle"] == "yes"
    Export2YAML.new.call(data, project) if output["yaml"] == "yes"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asker-tool-2.9.4 lib/asker/exporter/export_action.rb
asker-tool-2.9.3 lib/asker/exporter/export_action.rb
asker-tool-2.9.2 lib/asker/exporter/export_action.rb
asker-tool-2.9.1 lib/asker/exporter/export_action.rb
asker-tool-2.9.0 lib/asker/exporter/export_action.rb