summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/agent.rake8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/tasks/agent.rake b/lib/tasks/agent.rake
index 26d3982..1857454 100644
--- a/lib/tasks/agent.rake
+++ b/lib/tasks/agent.rake
@@ -15,8 +15,10 @@ namespace :agent do
end
desc "scan network traffic"
- task nfm: :environment do
- agent = FakeAgent.new(Agent.first.id, ENDPOINT)
- agent.sniff('en1')
+ task :nfm do
+ id = Agent.first.id
+ agent = FakeAgent.new(id, ENDPOINT)
+
+ agent.packet_capture('eth0')
end
end