Sha256: 927992d5fd19aa93db888661b1bfffb528ea631f2409d84e5eb75c24c02440bd

Contents?: true

Size: 502 Bytes

Versions: 10

Compression:

Stored size: 502 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(task_options)
    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

10 entries across 10 versions & 1 rubygems

Version Path
dradis-csv-3.19.0 lib/tasks/thorfile.rb
dradis-csv-3.18.0 lib/tasks/thorfile.rb
dradis-csv-3.17.0 lib/tasks/thorfile.rb
dradis-csv-3.16.0 lib/tasks/thorfile.rb
dradis-csv-3.15.0 lib/tasks/thorfile.rb
dradis-csv-3.14.0 lib/tasks/thorfile.rb
dradis-csv-3.13.0 lib/tasks/thorfile.rb
dradis-csv-3.12.0 lib/tasks/thorfile.rb
dradis-csv-3.11.0 lib/tasks/thorfile.rb
dradis-csv-3.10.0 lib/tasks/thorfile.rb