• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uclibs / application_portfolio / 14802066784

02 May 2025 07:32PM UTC coverage: 66.948% (-0.04%) from 66.985%
14802066784

Pull #401

circleci

Thomas Scherz
Adds Change Request Exporter.
Pull Request #401: LIBAPPPORT-63-Adds Change Request Exporter.

13 of 20 new or added lines in 2 files covered. (65.0%)

715 of 1068 relevant lines covered (66.95%)

20.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.0
/app/controllers/export_data_controller.rb
1
# frozen_string_literal: true
2

3
# ExportData Controller
4
class ExportDataController < ApplicationController
2✔
5
  layout 'software_records'
2✔
6
  before_action :authenticate_user!
2✔
7
  access root_admin: :all, owner: :all
2✔
8

9
  def software_records
2✔
10
    system('cd../..')
2✔
11
    $export = `ruby exports/software_records.rb`
2✔
12
    send_file "#{Dir.pwd}/public/software_records.csv", disposition: 'attachment'
2✔
13
  end
14

15
  def software_types
2✔
16
    system('cd../..')
2✔
17
    $export = `ruby exports/software_types.rb`
2✔
18
    send_file "#{Dir.pwd}/public/software_types.csv", disposition: 'attachment'
2✔
19
  end
20

21
  def vendor_records
2✔
22
    system('cd../..')
2✔
23
    $export = `ruby exports/vendor_records.rb`
2✔
24
    send_file "#{Dir.pwd}/public/vendor_records.csv", disposition: 'attachment'
2✔
25
  end
26

27
  def change_requests
2✔
NEW
28
    system('cd../..')
×
NEW
29
    $export = `ruby exports/change_requests.rb`
×
NEW
30
    send_file "#{Dir.pwd}/public/change_requests.csv", disposition: 'attachment'
×
31
  end
32
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc