summaryrefslogtreecommitdiff
path: root/lib/tasks/agent.rake
blob: d00de1d5a51f6a074053516d93e384f746840215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
end