jobs.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
---
jobs.rb (917B)
---
1 # == Schema Information
2 #
3 # Table name: jobs
4 #
5 # id :integer not null, primary key
6 # created_at :datetime
7 # updated_at :datetime
8 # project_id :integer not null
9 # locked_by :string(255)
10 # locked_at :datetime
11 # started_at :datetime
12 # completed_at :datetime
13 # created_by :string(255)
14 # task :string(255) not null
15 # args :binary
16 # status :string(255)
17 # error :text
18 # progress :integer default(0)
19 #
20
21 FactoryGirl.define do
22 factory :job do
23 project
24 task 'dialer'
25 args "\x04\b{\t:\nrangeI\"\x0F7632458942\x06:\x06ET:\nlinesi\x0F:\fsecondsi::\rcid_maskI\"\tSELF\x06;\x06T"
26 status 'submitted'
27 error nil
28 range { Faker::PhoneNumber.phone_number }
29 cid_mask { Faker::PhoneNumber.phone_number }
30 seconds { Faker::Number.between(1, 299) }
31 lines { Faker::Number.between(1, 10000) }
32 end
33
34 end