blob: 98aa2d5530410ae78f30a2eb5045a56bcd8d56ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace :agent do
require 'fake_agent'
desc "watch all files"
task watch: :environment do
agent = FakeAgent.new(Agent.first.id, 'http://localhost:3000')
agent.watch(Dir.pwd)
end
desc "scan directory"
task scan: :environment do
agent = FakeAgent.new(Agent.first.id, 'http://localhost:3000')
agent.scan(Dir.pwd)
end
desc "scan network traffic"
task nfm: :environment do
agent = FakeAgent.new(Agent.first.id, 'http://localhost:3000')
agent.sniff('en1')
end
end
|