class LiveUpdaterActor

Public Class Methods

new() click to toggle source
# File lib/live_updater_actor.rb, line 8
def initialize
  @listener = build
  start
end

Public Instance Methods

build() click to toggle source
# File lib/live_updater_actor.rb, line 13
def build
  Listen.to($LIVE_UPDATE_WATCH_PATH) do |modified, added, removed|
    debug_message "modified absolute path: #{modified}"
    debug_message "added absolute path: #{added}"
    debug_message "removed absolute path: #{removed}"
    publish "refresh"
  end
end
start() click to toggle source
# File lib/live_updater_actor.rb, line 22
def start
  @listener.start
end
stop() click to toggle source
# File lib/live_updater_actor.rb, line 26
def stop
  @listener.stop
end