Sha256: 6ddb13a55690e6d28cc56a2849d26c0925eee5ee892cc0a23e76fb300c0b2090

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

class CSVTasks < Thor
  include Rails.application.config.dradis.thor_helper_module

  namespace "dradis:plugins:csv"

  desc "export", "export issues to a CSV file"
  def export
    require 'config/environment'

    detect_and_set_project_scope

    exporter = Dradis::Plugins::CSV::Exporter.new
    csv = exporter.export()

    filename = "dradis-report_#{Time.now.to_i}.csv"
    File.open(filename, 'w') { |f| f.write csv }

    logger.info "File written to ./#{ filename }"
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dradis-csv-3.9.0 lib/tasks/thorfile.rb
dradis-csv-3.8.0 lib/tasks/thorfile.rb
dradis-csv-3.7.0 lib/tasks/thorfile.rb