diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-06 17:04:27 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-06 17:04:27 -0700 |
| commit | 55c6cc6d83391a98fe87898e8fdb8eb987de1e40 (patch) | |
| tree | 19e694778016071de0a98b0af126a5043fb7dfed /lib/tasks | |
| parent | 0d938af572044200f4a1f23a7006268d53117358 (diff) | |
extract method to yield packets back from each capture.
Diffstat (limited to 'lib/tasks')
| -rw-r--r-- | lib/tasks/agent.rake | 8 |
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 |
