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