diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-04 21:03:29 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-04 21:03:29 -0700 |
| commit | 91ab6ce89280d244e0aca9edd91e93979b7e14e0 (patch) | |
| tree | 6d449c099b7c22297406aab7990b267c60753c0b /lib/tasks/agent.rake | |
| parent | 5bb42397569d7f0108178009c0c130128239ab34 (diff) | |
create fake agent to watch filesystem for changes and publish to query api.
Diffstat (limited to 'lib/tasks/agent.rake')
| -rw-r--r-- | lib/tasks/agent.rake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tasks/agent.rake b/lib/tasks/agent.rake new file mode 100644 index 0000000..9fe156e --- /dev/null +++ b/lib/tasks/agent.rake @@ -0,0 +1,8 @@ +namespace :agent do + desc "watch all files" + task watch: :environment do + require 'fake_agent' + agent = FakeAgent.new(Agent.first.id, 'http://localhost:3000') + agent.run(Dir.pwd) + end +end |
