Class: KnocKnoc::WatchmanLive

Inherits:
Watchman
  • Object
show all
Defined in:
lib/knoc-knoc/watchman_live.rb

Constant Summary

Constants inherited from Watchman

KnocKnoc::Watchman::SUBNET

Instance Method Summary collapse

Methods inherited from Watchman

local_ip, ping, ping_all, #refresh_lists, #update_new_ips, #update_whos_left

Constructor Details

#initializeWatchmanLive

Returns a new instance of WatchmanLive.



5
6
7
8
9
10
# File 'lib/knoc-knoc/watchman_live.rb', line 5

def initialize
  super
  Thread.new() do
    refresh_lists
  end
end

Instance Method Details

#cleanupObject



27
28
# File 'lib/knoc-knoc/watchman_live.rb', line 27

def cleanup
end

#whos_leftObject



17
18
19
20
# File 'lib/knoc-knoc/watchman_live.rb', line 17

def whos_left
  refresh_lists
  super
end

#whos_newObject



12
13
14
15
# File 'lib/knoc-knoc/watchman_live.rb', line 12

def whos_new
  refresh_lists
  super
end

#whos_thereObject



22
23
24
25
# File 'lib/knoc-knoc/watchman_live.rb', line 22

def whos_there
  refresh_lists
  super
end