Class: VsRails::ScansController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- VsRails::ScansController
- Defined in:
- app/controllers/vs_rails/scans_controller.rb
Instance Method Summary collapse
Instance Method Details
#callback ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/vs_rails/scans_controller.rb', line 5 def callback scan = Scan.where(uuid: @uuid).first status = case params[:status] when "clean" "clean" when "infected" "infected" else "unknown" end scan.update(vs_id: params[:id], status: status) render nothing: true end |
#get_scan_id ⇒ Object
22 23 24 |
# File 'app/controllers/vs_rails/scans_controller.rb', line 22 def get_scan_id @uuid = params[:uuid] end |