Sha256: 7515f2c2d8fa3e2d396597309f5798431694afe2914803a6212355361374f96c

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

module Munge
  module Extras
    module Livereload
      class UpdateClient
        include Celluloid
        include Celluloid::Notifications

        def initialize(webserver)
          @webserver = webserver
          subscribe("changed_files", :notify_reload)
        end

        def notify_reload(_topic, changed_files)
          @webserver.notify_reload(changed_files)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
munge-0.18.0 lib/munge/extras/livereload/update_client.rb
munge-0.17.0 lib/munge/extras/livereload/update_client.rb
munge-0.16.0 lib/munge/extras/livereload/update_client.rb