home_controller.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
(HTM) git clone git://jay.scot/warvox
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
home_controller.rb (589B)
---
1 class HomeController < ApplicationController
2
3 def index
4
5 end
6
7 def about
8 begin
9 @has_kissfft = "MISSING"
10 require 'kissfft'
11 @has_kissfft = $LOADED_FEATURES.grep(/kissfft/)[0]
12 rescue ::LoadError
13 end
14 end
15
16 def help
17 end
18
19 def check
20 @has_project = ( Project.count > 0 )
21 @has_provider = ( Provider.where(enabled: true).count > 0 )
22 @has_job = ( Job.where(task: 'dialer').count > 0 )
23 @has_result = ( Call.where(answered: true ).count > 0 )
24 @has_analysis = ( Call.where('analysis_completed_at IS NOT NULL').count > 0 )
25 end
26
27 end